WINTERMUTE: Fix int vs int32 discrepancy

This commit is contained in:
Le Philousophe 2022-07-04 08:12:59 +02:00
parent 1b35e66c01
commit 4747708353

View File

@ -2505,7 +2505,7 @@ Wintermute::TShadowType AdGame::getMaxShadowType(Wintermute::BaseObject *object)
//////////////////////////////////////////////////////////////////////////
bool AdGame::getLayerSize(int *layerWidth, int *layerHeight, Rect32 *viewport, bool *customViewport) {
if (_scene && _scene->_mainLayer) {
int portX, portY, portWidth, portHeight;
int32 portX, portY, portWidth, portHeight;
_scene->getViewportOffset(&portX, &portY);
_scene->getViewportSize(&portWidth, &portHeight);
*customViewport = _sceneViewport || _scene->_viewport;