mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-05-30 09:08:35 +00:00
avoid using auto variables for windows compilation (rectangle)
This commit is contained in:
@@ -52,9 +52,12 @@ namespace RAY::Drawables::Drawables2D
|
||||
|
||||
Rectangle::operator ::Rectangle () const
|
||||
{
|
||||
return (::Rectangle){
|
||||
this->_position.x, this->_position.y,
|
||||
this->_dimensions.x, this->_dimensions.y
|
||||
};
|
||||
::Rectangle rect;
|
||||
|
||||
rect.x = this->_position.x;
|
||||
rect.y = this->_position.y;
|
||||
rect.width = this->_dimensions.x;
|
||||
rect.height = this->_dimensions.y;
|
||||
return rect;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user