Call Window.onFramebufferSizeChanged to resize (fixes #705)

Instead of setting the the values via accessor and calling the handler directly.
This allows mods like ResolutionControl+ to properly resize its internal
framebuffers as well.
This commit is contained in:
Jonas Herzig
2022-04-10 19:53:15 +02:00
parent 5be57681af
commit 497b8440ca
3 changed files with 8 additions and 11 deletions

View File

@@ -15,4 +15,6 @@ public interface MainWindowAccessor {
int getFramebufferHeight();
@Accessor
void setFramebufferHeight(int value);
@Invoker
void invokeOnFramebufferSizeChanged(long window, int width, int height);
}