summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Game.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-02-16 23:59:33 +0100
committerAki <please@ignore.pl>2022-02-16 23:59:33 +0100
commitf49d139c6bb975a68478eedd9763028443f47d25 (patch)
tree500049d7ee6b8b32f8b142ba5a1287ca7edb62d6 /Stars45/Game.cpp
parent5412bc10447bc0154f6c813d029d5c1c1d835388 (diff)
downloadstarshatter-f49d139c6bb975a68478eedd9763028443f47d25.zip
starshatter-f49d139c6bb975a68478eedd9763028443f47d25.tar.gz
starshatter-f49d139c6bb975a68478eedd9763028443f47d25.tar.bz2
Changed video related static game method to instance methods
Diffstat (limited to 'Stars45/Game.cpp')
-rw-r--r--Stars45/Game.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/Stars45/Game.cpp b/Stars45/Game.cpp
index 9632d6a..d0a5735 100644
--- a/Stars45/Game.cpp
+++ b/Stars45/Game.cpp
@@ -195,7 +195,7 @@ Game::SetMaxTexSize(int n)
bool
Game::DisplayModeSupported(int w, int h, int bpp)
{
- return game && game->video && game->video->IsModeSupported(w,h,bpp);
+ return video && video->IsModeSupported(w, h, bpp);
}
double
@@ -1006,10 +1006,7 @@ Game::GetInstance()
Video*
Game::GetVideo()
{
- if (game)
- return game->video;
-
- return 0;
+ return video;
}
Color