summaryrefslogtreecommitdiffhomepage
path: root/StarsEx/Bitmap.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-10 00:30:31 +0200
committerAki <please@ignore.pl>2022-04-10 00:30:31 +0200
commit06683d2e60da5144e5483c3d0cf88aa28dab1c8a (patch)
tree646b470948b93a1dd18ba759f071ff454211feb1 /StarsEx/Bitmap.cpp
parent595140fc96fc48ac6934615d37bd2b4a180d716d (diff)
downloadstarshatter-06683d2e60da5144e5483c3d0cf88aa28dab1c8a.zip
starshatter-06683d2e60da5144e5483c3d0cf88aa28dab1c8a.tar.gz
starshatter-06683d2e60da5144e5483c3d0cf88aa28dab1c8a.tar.bz2
Requested texture size is now managed by Video and Video Settings
Diffstat (limited to 'StarsEx/Bitmap.cpp')
-rw-r--r--StarsEx/Bitmap.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/StarsEx/Bitmap.cpp b/StarsEx/Bitmap.cpp
index 70cff64..07c5dae 100644
--- a/StarsEx/Bitmap.cpp
+++ b/StarsEx/Bitmap.cpp
@@ -15,7 +15,6 @@
#include "Clock.h"
#include "Video.h"
#include "Color.h"
-#include "GameWinDX9.h"
// +--------------------------------------------------------------------+
@@ -664,8 +663,8 @@ Bitmap::MakeTexture()
}
// check size and aspect ratio:
- int max_tex_size = GameWinDX9::GetInstance()->MaxTexSize();
- int max_tex_aspect = GameWinDX9::GetInstance()->MaxTexAspect();
+ int max_tex_size = Video::GetInstance()->TexSize();
+ int max_tex_aspect = Video::GetInstance()->MaxTexAspect();
int best_width = FindBestTexSize(width, max_tex_size);
int best_height = FindBestTexSize(height, max_tex_size);