mirror of
https://github.com/fltk/fltk.git
synced 2026-06-05 16:12:13 +08:00
STR #1082: fullscreen demo would not redraw because resizing would set the "wait for expose" flag. However, OS X does not send an expose event on resizes. Doh!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4726 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+4
-2
@@ -1768,7 +1768,6 @@ void Fl_X::make(Fl_Window* w)
|
|||||||
x->wait_for_expose = 1;
|
x->wait_for_expose = 1;
|
||||||
x->next = Fl_X::first;
|
x->next = Fl_X::first;
|
||||||
Fl_X::first = x;
|
Fl_X::first = x;
|
||||||
if (w->resizable()) DrawGrowIcon(x->xid);
|
|
||||||
w->set_visible();
|
w->set_visible();
|
||||||
{ // Install Carbon Event handlers
|
{ // Install Carbon Event handlers
|
||||||
OSStatus ret;
|
OSStatus ret;
|
||||||
@@ -1939,7 +1938,10 @@ void Fl_Window::resize(int X,int Y,int W,int H) {
|
|||||||
resize_from_system = 0;
|
resize_from_system = 0;
|
||||||
if (is_a_resize) {
|
if (is_a_resize) {
|
||||||
Fl_Group::resize(X,Y,W,H);
|
Fl_Group::resize(X,Y,W,H);
|
||||||
if (shown()) { redraw(); if (!parent()) i->wait_for_expose = 1; }
|
if (shown()) {
|
||||||
|
redraw();
|
||||||
|
//if (!parent()) i->wait_for_expose = 1;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
x(X); y(Y);
|
x(X); y(Y);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user