mirror of
https://github.com/love2d/love.git
synced 2026-08-19 20:19:42 +02:00
Fixed the graphics viewport not matching the window size when an unsupported fullscreen resolution is set
This commit is contained in:
@@ -156,12 +156,9 @@ bool Window::setWindow(int width, int height, graphics::Graphics *graphics, Wind
|
|||||||
|
|
||||||
created = true;
|
created = true;
|
||||||
|
|
||||||
if (width == 0 || height == 0)
|
const SDL_VideoInfo *videoinfo = SDL_GetVideoInfo();
|
||||||
{
|
width = videoinfo->current_w;
|
||||||
const SDL_VideoInfo *videoinfo = SDL_GetVideoInfo();
|
height = videoinfo->current_h;
|
||||||
width = videoinfo->current_w;
|
|
||||||
height = videoinfo->current_h;
|
|
||||||
}
|
|
||||||
|
|
||||||
int buffers;
|
int buffers;
|
||||||
int samples;
|
int samples;
|
||||||
|
|||||||
Reference in New Issue
Block a user