mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
setMode now accepts 0, 0 as width and height for screen width and height
This commit is contained in:
@@ -213,6 +213,13 @@ namespace opengl
|
||||
}
|
||||
}
|
||||
|
||||
if (width == 0 || height == 0)
|
||||
{
|
||||
const SDL_VideoInfo* videoinfo = SDL_GetVideoInfo();
|
||||
width = videoinfo->current_w;
|
||||
height = videoinfo->current_h;
|
||||
}
|
||||
|
||||
// Check if FSAA failed or not
|
||||
if(fsaa > 0)
|
||||
{
|
||||
@@ -306,7 +313,7 @@ namespace opengl
|
||||
{
|
||||
SDL_GL_SwapBuffers();
|
||||
}
|
||||
|
||||
|
||||
void Graphics::setIcon(Image * image)
|
||||
{
|
||||
Uint32 rmask, gmask, bmask, amask;
|
||||
|
||||
Reference in New Issue
Block a user