Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/imagewin/imagewin.cc b/imagewin/imagewin.cc
- index 723b39d..4d488c0 100644
- --- a/imagewin/imagewin.cc
- +++ b/imagewin/imagewin.cc
- @@ -555,9 +555,13 @@ void Image_window::create_surface(
- get_draw_dims(w, h, scale, fill_mode, game_width, game_height, inter_width, inter_height);
- +#if SDL_VERSION_ATLEAST(2, 0, 0)
- + if (try_scaler(w, h) == false) {
- +#else
- if ((game_width != inter_width || game_height != inter_height ||
- static_cast<int>(w) != game_width * scale || static_cast<int>(h) != game_height * scale ||
- force_bpp) && try_scaler(w, h) == false) {
- +#endif
- // Try fallback to point scaler if it failed, if it doesn't work, we probably can't run
- scaler = point;
- try_scaler(w, h);
- @@ -801,8 +805,12 @@ bool Image_window::try_scaler(int w, int h) {
- scaler = point;
- }
- +#if SDL_VERSION_ATLEAST(2, 0, 0)
- + if (true) {
- +#else
- if (game_width != inter_width || game_height != inter_height ||
- w != game_width * scale || h != game_height * scale || force_bpp) {
- +#endif
- const ScalerInfo *info;
- if (scaler < 0 || scaler >= NumScalers || scale == 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement