Please sign in to comment.
Add support for window scale modes other than 1 and 2
Window scale can now be anything between 1 and 10 (suggest something other than 10 for maximum scale?). This required a number of subtle changes: * made blit2 (PowderToySDL.cpp) handle scale modes correctly (it really only handled scale:2 correctly before) * replaced `bool scale` with `int scale` everywhere in the options view/model/controller * replaced the _large screen_ checkbox with a _window scale_ textbox in the options view The new scale is only checked and applied when the options view is closed. There's no reason to not apply it live, I just chose not to. This commit does *not* make TPT able to figure out an optimal scale mode at first run. It still suggests using scale:2 if it makes sense though. I had doubts about using a second loop in blit2 but it doesn't seem to be an issue. If there's a more optimal way of going about what blit2 does, I haven't figured it out. (Sublime seems to have eaten a few trailing spaces, hence there are a few seemingly identical pairs of lines in the diff.)
- Loading branch information...
Showing with 48 additions and 51 deletions.