mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Rename stretch mode to scaling mode internally
It's been long overdue that this variable be named properly. 2.2 added integer scaling mode (thanks Ethan), 2.3 renamed it to scaling mode. Now 2.4 will properly call it what it is so people won't be confused by it. The ScreenSettings struct member is renamed from stretch to scalingMode along with the Screen class member being renamed, as well as the toggleStretchMode function being renamed to toggleScalingMode as well. Unfortunately, due to compatibility, we can't change the <stretch> XML tag.
This commit is contained in:
@@ -1921,7 +1921,7 @@ void editorinput(void)
|
||||
game.my = (float) key.my;
|
||||
ed.tilex=(game.mx - (game.mx%8))/8;
|
||||
ed.tiley=(game.my - (game.my%8))/8;
|
||||
if (graphics.screenbuffer->stretchMode == 1) {
|
||||
if (graphics.screenbuffer->scalingMode == 1) {
|
||||
// In this mode specifically, we have to fix the mouse coordinates
|
||||
int winwidth, winheight;
|
||||
graphics.screenbuffer->GetWindowSize(&winwidth, &winheight);
|
||||
|
||||
Reference in New Issue
Block a user