summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Bitmap.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-03-14 19:36:33 +0100
committerAki <please@ignore.pl>2022-03-14 19:36:33 +0100
commit2e5d0eb1eecc52b20d1e9f7a3ce0317b851442c4 (patch)
treea1e7873c9086e5d1f4be8092d775e6127f5c388c /Stars45/Bitmap.cpp
parent92f7c58068c6a7bfe0b32af5c1ace6bdde2f3951 (diff)
downloadstarshatter-2e5d0eb1eecc52b20d1e9f7a3ce0317b851442c4.zip
starshatter-2e5d0eb1eecc52b20d1e9f7a3ce0317b851442c4.tar.gz
starshatter-2e5d0eb1eecc52b20d1e9f7a3ce0317b851442c4.tar.bz2
Moved max texture size to GameWinDX9
Diffstat (limited to 'Stars45/Bitmap.cpp')
-rw-r--r--Stars45/Bitmap.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Stars45/Bitmap.cpp b/Stars45/Bitmap.cpp
index e69a755..865b726 100644
--- a/Stars45/Bitmap.cpp
+++ b/Stars45/Bitmap.cpp
@@ -16,6 +16,7 @@
#include "Video.h"
#include "Color.h"
#include "Game.h"
+#include "GameWinDX9.h"
// +--------------------------------------------------------------------+
@@ -664,8 +665,8 @@ Bitmap::MakeTexture()
}
// check size and aspect ratio:
- int max_tex_size = Game::GetInstance()->MaxTexSize();
- int max_tex_aspect = Game::GetInstance()->MaxTexAspect();
+ int max_tex_size = GameWinDX9::GetInstance()->MaxTexSize();
+ int max_tex_aspect = GameWinDX9::GetInstance()->MaxTexAspect();
int best_width = FindBestTexSize(width, max_tex_size);
int best_height = FindBestTexSize(height, max_tex_size);