Fixed magic numbers for default screen size
This commit is contained in:
@@ -52,7 +52,7 @@ void Application::Init(int argc, char* argv[]) {
|
|||||||
|
|
||||||
//screen scaling
|
//screen scaling
|
||||||
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "best");
|
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "best");
|
||||||
SDL_RenderSetLogicalSize(renderer, 800, 600);
|
SDL_RenderSetLogicalSize(renderer, screenWidth, screenHeight);
|
||||||
|
|
||||||
//set the hook for the renderer
|
//set the hook for the renderer
|
||||||
BaseScene::SetRenderer(renderer);
|
BaseScene::SetRenderer(renderer);
|
||||||
|
|||||||
Reference in New Issue
Block a user