FLTK logo

[master] 76a3ded - Fix for issue #279 about detecting early retina with GL windows.

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 76a3ded - Fix for issue #279 about detecting early retina with GL windows. "ManoloFLTK" Nov 05, 2021  
 
commit 76a3ded5491c3cbc31f921ddbc9d2afa4257940a
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Fri Nov 5 15:21:56 2021 +0100
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Fri Nov 5 15:21:56 2021 +0100

    Fix for issue #279 about detecting early retina with GL windows.

 src/Fl_cocoa.mm | 1 +
 1 file changed, 1 insertion(+)

diff --git src/Fl_cocoa.mm src/Fl_cocoa.mm
index 63c6c8e..2c130f5 100644
--- src/Fl_cocoa.mm
+++ src/Fl_cocoa.mm
@@ -3143,6 +3143,7 @@ Fl_X* Fl_Cocoa_Window_Driver::makeWindow()
   Fl::e_number = old_event;
 
   // if (w->modal()) { Fl::modal_ = w; fl_fix_focus(); }
+  if (!w->parent()) [myview did_view_resolution_change]; // to set mapped_to_retina to its current state
   [pool release];
   return x;
 }
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.