stretchedmode: reduce wait time after changing scaling percentage

It now sets the max width and height right before the canvas is resized,
so the canvas size uses those max bounds immediately, instead of setting
it 500ms after the canvas is resized initially.
This commit is contained in:
Lotto
2018-11-02 16:51:19 +01:00
parent 57711cc9ff
commit b145fae00f
4 changed files with 33 additions and 26 deletions

View File

@@ -51,4 +51,10 @@ public interface RSGameEngine extends GameEngine
@Import("replaceCanvasNextFrame")
void setReplaceCanvasNextFrame(boolean replace);
@Import("maxCanvasWidth")
void setMaxCanvasWidth(int width);
@Import("maxCanvasHeight")
void setMaxCanvasHeight(int height);
}