- [FIX] En pantalla completa se veïa el cursor, ara ja no
This commit is contained in:
@@ -95,6 +95,7 @@ namespace draw
|
|||||||
|
|
||||||
if (screen_fullscreen)
|
if (screen_fullscreen)
|
||||||
{
|
{
|
||||||
|
SDL_ShowCursor(false);
|
||||||
int w, h;
|
int w, h;
|
||||||
SDL_GetWindowSize(sdl_window, &w, &h);
|
SDL_GetWindowSize(sdl_window, &w, &h);
|
||||||
fullscreen_scale = h/screen_height;
|
fullscreen_scale = h/screen_height;
|
||||||
@@ -105,6 +106,7 @@ namespace draw
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
SDL_ShowCursor(true);
|
||||||
dest_rect.x = dest_rect.y = 0;
|
dest_rect.x = dest_rect.y = 0;
|
||||||
dest_rect.w = screen_width * zoom;
|
dest_rect.w = screen_width * zoom;
|
||||||
dest_rect.h = screen_height * zoom;
|
dest_rect.h = screen_height * zoom;
|
||||||
@@ -175,6 +177,7 @@ namespace draw
|
|||||||
|
|
||||||
if (screen_fullscreen)
|
if (screen_fullscreen)
|
||||||
{
|
{
|
||||||
|
SDL_ShowCursor(false);
|
||||||
int w, h;
|
int w, h;
|
||||||
SDL_GetWindowSize(sdl_window, &w, &h);
|
SDL_GetWindowSize(sdl_window, &w, &h);
|
||||||
fullscreen_scale = h/screen_height;
|
fullscreen_scale = h/screen_height;
|
||||||
@@ -185,6 +188,7 @@ namespace draw
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
SDL_ShowCursor(true);
|
||||||
dest_rect.x = dest_rect.y = 0;
|
dest_rect.x = dest_rect.y = 0;
|
||||||
dest_rect.w = screen_width * zoom;
|
dest_rect.w = screen_width * zoom;
|
||||||
dest_rect.h = screen_height * zoom;
|
dest_rect.h = screen_height * zoom;
|
||||||
|
|||||||
Reference in New Issue
Block a user