File tree Expand file tree Collapse file tree 4 files changed +4
-8
lines changed
Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 4444 #define MOD_KEY OF_KEY_CONTROL
4545#endif
4646
47-
48- #define RETINA_MIN_WIDTH 2560
49- #define RETINA_MIN_HEIGHT 1600
50-
5147#define OUTPUT_TEX_MAX_WIDTH 4800
5248#define OUTPUT_TEX_MAX_HEIGHT 4800
5349
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ void moTimeline::setupObjectContent(shared_ptr<ofAppGLFWWindow> &mainWindow){
119119 settings.resizable = true ;
120120 settings.stencilBits = 0 ;
121121 // RETINA FIX
122- if (ofGetScreenWidth () >= RETINA_MIN_WIDTH && ofGetScreenHeight () >= RETINA_MIN_HEIGHT ){
122+ if (mainWindow-> getPixelScreenCoordScale () > 1 ){
123123 settings.setPosition (ofDefaultVec2 (mainWindow->getScreenSize ().x -(1600 +100 ),400 ));
124124 settings.setSize (1600 , 1200 );
125125 }else {
@@ -816,7 +816,7 @@ void moTimeline::toggleWindowFullscreen(){
816816 window->toggleFullscreen ();
817817
818818 if (!isFullscreen){
819- if (ofGetScreenWidth () >= RETINA_MIN_WIDTH && ofGetScreenHeight () >= RETINA_MIN_HEIGHT ){
819+ if (window-> getPixelScreenCoordScale () > 1 ){
820820 window->setWindowShape (1600 ,1200 );
821821 }else {
822822 window->setWindowShape (800 ,600 );
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ void OutputWindow::setupObjectContent(shared_ptr<ofAppGLFWWindow> &mainWindow){
120120 settings.resizable = true ;
121121 settings.stencilBits = 0 ;
122122 // RETINA FIX
123- if (ofGetScreenWidth () >= RETINA_MIN_WIDTH && ofGetScreenHeight () >= RETINA_MIN_HEIGHT ){
123+ if (mainWindow-> getPixelScreenCoordScale () > 1 ){
124124 if (ofGetScreenWidth () > 3360 && ofGetScreenHeight () > 2100 ){
125125 window_actual_width = STANDARD_PROJECTOR_WINDOW_WIDTH*2 ;
126126 window_actual_height = STANDARD_PROJECTOR_WINDOW_HEIGHT*2 ;
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ void ProjectionMapping::setupObjectContent(shared_ptr<ofAppGLFWWindow> &mainWind
9797 settings.resizable = true ;
9898 settings.stencilBits = 0 ;
9999 // RETINA FIX
100- if (ofGetScreenWidth () >= RETINA_MIN_WIDTH && ofGetScreenHeight () >= RETINA_MIN_HEIGHT ){
100+ if (mainWindow-> getPixelScreenCoordScale () > 1 ){
101101 if (ofGetScreenWidth () > 3360 && ofGetScreenHeight () > 2100 ){
102102 window_actual_width = STANDARD_PROJECTOR_WINDOW_WIDTH*2 ;
103103 window_actual_height = STANDARD_PROJECTOR_WINDOW_HEIGHT*2 ;
You can’t perform that action at this time.
0 commit comments