Open AkiSakurai opened 1 year ago
The underlying issue here is that Resized
is invoked when the SDL2 internal window Size
is changed, while the xmldoc requires it to be invoked when ClientSize
is changed. (Only ClientSize
is publicly exposed in IWindow
.)
This is not an issue on Windows, as Size
always matches ClientSize
.
@peppy seems to have run into a similar issue on macOS. Where the size returned from SDL_Metal_GetDrawableSize
doesn't match what is expected (returns the old value)
https://discord.com/channels/188630481301012481/188630652340404224/1126093119788699688
From the image in the above discord conversation, it's visible that Scale
is equal to 0.5 there. As SDL_Metal_GetDrawableSize
returned the old width (half the screen), the divide would result in 0.5
.
https://github.com/ppy/osu-framework/assets/75532970/e2326133-5c80-499b-aacc-1c12f5d21968
This issue is observed MacOS with both openGL and metal renderer. I have not tested it on other operating systems.
These modifications were used to generate the log. Action event is not trigged which is used to update the output area of tablet driver.