Higher resolution background redraw bug (patch inside)


#1

Hi everyone,

Just finished the game, love it :smiley:
There is a little bug which is that background colors (visible in thw rold1 background for example) only redraw in a 800x600 rectangle even if the real resolution is larger:
[URL=http://imgur.com/WJOYv.png][/URL]

I’ve made a little patch for revision 3456. I’m not sure if it’s valid to use the preferences as source of the screen resolution but it works.

16a17 > #include "preferences.hpp" 204c205 < glScissor(0, dist_from_bottom, graphics::screen_width(), graphics::screen_height() - dist_from_bottom); --- > glScissor(0, dist_from_bottom, preferences::actual_screen_width(), preferences::actual_screen_width()*(1-dist_from_bottom/600)); 212c213 < glScissor(0, 0, graphics::screen_width(), dist_from_bottom); --- > glScissor(0, 0, preferences::actual_screen_width(), dist_from_bottom);

Greez, Joo

Edit: Ah, attachments, nice.


background.cpp.patch (440 Bytes)


#2

Great, thank you for finding this bug and submitting a patch! preferences is meant to be the place to get the actual screen resolution from. I’ve applied your patch.

David