Member Fl_Cocoa_Window_Driver::window_flags_ stores now 2 flags

This commit is contained in:
ManoloFLTK 2019-04-07 11:24:20 +02:00
parent c66caf5dce
commit abc8f4158f
2 changed files with 3 additions and 4 deletions

View File

@ -82,8 +82,7 @@ private:
void shape_bitmap_(Fl_Image* b);
void shape_alpha_(Fl_Image* img, int offset);
CGRect* subRect_; // makes sure subwindow remains inside its parent window
// stores 3 binary flags: whether window is mapped to retina display; whether resolution just changed;
// whether window is OpenGL and is currently being resized.
// stores 2 binary flags: whether window is mapped to retina display; whether resolution just changed
unsigned window_flags_;
public:
Fl_Cocoa_Window_Driver(Fl_Window*);

View File

@ -272,8 +272,8 @@ int Fl_Cocoa_Window_Driver::scroll(int src_x, int src_y, int src_w, int src_h, i
return 0;
}
static const unsigned mapped_mask = 2;
static const unsigned changed_mask = 4;
static const unsigned mapped_mask = 1;
static const unsigned changed_mask = 2;
bool Fl_Cocoa_Window_Driver::mapped_to_retina() {
return window_flags_ & mapped_mask;