Member Fl_Cocoa_Window_Driver::window_flags_ stores now 2 flags
This commit is contained in:
parent
c66caf5dce
commit
abc8f4158f
@ -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*);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user