mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 11:19:19 +02:00
minor camera refactoring, division by zero guards
This commit is contained in:
@@ -149,10 +149,14 @@ ui_layer::set_background( std::string const &Filename ) {
|
||||
else {
|
||||
m_background = null_handle;
|
||||
}
|
||||
|
||||
if( m_background != null_handle ) {
|
||||
auto const &texture = GfxRenderer.Texture( m_background );
|
||||
m_progressbottom = ( texture.width() != texture.height() );
|
||||
}
|
||||
else {
|
||||
m_progressbottom = true;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user