Make last change compile
* src/haiku_support.cc (EmacsShow): Fix last change. (TearDownDoubleBuffering): Likewise. (Draw): Draw normally if not double buffered even if shown_flag is true.
This commit is contained in:
parent
141a06334e
commit
748e670d5d
1 changed files with 2 additions and 4 deletions
|
@ -739,7 +739,7 @@ class EmacsWindow : public BWindow
|
|||
was_shown_p = true;
|
||||
}
|
||||
|
||||
if (this->parent && offscreen_draw_view)
|
||||
if (this->parent)
|
||||
shown_flag = 1;
|
||||
Show ();
|
||||
if (this->parent)
|
||||
|
@ -994,8 +994,6 @@ class EmacsView : public BView
|
|||
offscreen_draw_view = NULL;
|
||||
delete offscreen_draw_bitmap_1;
|
||||
offscreen_draw_bitmap_1 = NULL;
|
||||
|
||||
shown_flag = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1058,7 +1056,7 @@ class EmacsView : public BView
|
|||
return;
|
||||
}
|
||||
|
||||
if (w->shown_flag)
|
||||
if (w->shown_flag && offscreen_draw_view)
|
||||
{
|
||||
PushState ();
|
||||
SetDrawingMode (B_OP_ERASE);
|
||||
|
|
Loading…
Add table
Reference in a new issue