1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

OpenGL: Allow setting window bounds from repaint callback

On Windows, the OpenGL context window sometimes receives a repaint
request after moving between screens with different scale factors.
If the screen has changed size/scale since the last paint operation,
failing to invalidate the painted area may cause the screen contents
to be drawn at the wrong scale until paint is next called.
This commit is contained in:
reuk 2022-08-03 16:45:26 +01:00
parent 02b5ab748a
commit e64f87b26c
2 changed files with 7 additions and 8 deletions

View file

@ -68,6 +68,7 @@ JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996 4100)
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wconversion",
"-Wshadow",
"-Wdeprecated-register",
"-Wdeprecated-declarations",
"-Wunused-parameter",
"-Wdeprecated-writable-strings",
"-Wnon-virtual-dtor",