Fix SDL renderer scale calculation error
This commit is contained in:
@@ -139,7 +139,7 @@ namespace lime {
|
|||||||
|
|
||||||
SDL_GetWindowSize (sdlWindow, &width, &height);
|
SDL_GetWindowSize (sdlWindow, &width, &height);
|
||||||
|
|
||||||
double scale = outputWidth / width;
|
double scale = double(outputWidth) / width;
|
||||||
return scale;
|
return scale;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user