cinder / Cinder

Cinder is a community-developed, free and open source library for professional-quality creative coding in C++.
http://libcinder.org
Other
5.34k stars 944 forks source link

Windows Desktop: Drawing is flipped when full-screen on landscape (flipped) monitor #2213

Open richardeakin opened 3 years ago

richardeakin commented 3 years ago

I have a secondary monitor that is oriented as "Landscape (flipped)" (due to its cable arrangement) that is having an issue in cinder apps alone since a recent(ish) Windows 10 update. The app looks fine, and then if I fullscreen it, everything is drawn upside down. I can reproduce using samples/TextBox by adding the following code to the keyDown() method:

if( event.getCode() == KeyEvent::KEY_f ) {
    setFullScreen( ! isFullScreen() );
}

I noticed this a while back, now finding some time although I'm not sure where to look since I can't find any other libs that have had this same issue. Seems to have happened since some Windows 10 update during the beginning of the year.

If anyone has any ideas on how to hunt this down, perhaps with some HWND proc message or the likes, I'd be happy to investigate since this has been a thorn in my regular cinder workflow (fullscreening my dev app on a secondary monitor).