mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Don't extern gameScreen, use *graphics.screenbuffer instead
Externing gameScreen is just unnecessary. Still a good idea to have it off the stack, though.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "KeyPoll.h"
|
||||
#include "Graphics.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <utf8/unchecked.h>
|
||||
@@ -248,7 +249,7 @@ void KeyPoll::Poll()
|
||||
{
|
||||
if (wasFullscreen)
|
||||
{
|
||||
gameScreen.isWindowed = false;
|
||||
graphics.screenbuffer->isWindowed = false;
|
||||
SDL_SetWindowFullscreen(
|
||||
SDL_GetWindowFromID(evt.window.windowID),
|
||||
SDL_WINDOW_FULLSCREEN_DESKTOP
|
||||
@@ -262,8 +263,8 @@ void KeyPoll::Poll()
|
||||
isActive = false;
|
||||
if (!useFullscreenSpaces)
|
||||
{
|
||||
wasFullscreen = !gameScreen.isWindowed;
|
||||
gameScreen.isWindowed = true;
|
||||
wasFullscreen = !graphics.screenbuffer->isWindowed;
|
||||
graphics.screenbuffer->isWindowed = true;
|
||||
SDL_SetWindowFullscreen(
|
||||
SDL_GetWindowFromID(evt.window.windowID),
|
||||
0
|
||||
|
||||
Reference in New Issue
Block a user