diff options
| author | Po Lu | 2022-01-01 10:29:44 +0000 |
|---|---|---|
| committer | Po Lu | 2022-01-01 10:29:44 +0000 |
| commit | 748e670d5dc841824b42ccf83f5b8fd75bd20b81 (patch) | |
| tree | aa4f3eb75259b4397417c9a454bcefb312bca3e4 /src | |
| parent | 141a06334ecd92286b731125589832f161f03e11 (diff) | |
| download | emacs-748e670d5dc841824b42ccf83f5b8fd75bd20b81.tar.gz emacs-748e670d5dc841824b42ccf83f5b8fd75bd20b81.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/haiku_support.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/haiku_support.cc b/src/haiku_support.cc index e1aaf835689..b89a08663a4 100644 --- a/src/haiku_support.cc +++ b/src/haiku_support.cc | |||
| @@ -739,7 +739,7 @@ public: | |||
| 739 | was_shown_p = true; | 739 | was_shown_p = true; |
| 740 | } | 740 | } |
| 741 | 741 | ||
| 742 | if (this->parent && offscreen_draw_view) | 742 | if (this->parent) |
| 743 | shown_flag = 1; | 743 | shown_flag = 1; |
| 744 | Show (); | 744 | Show (); |
| 745 | if (this->parent) | 745 | if (this->parent) |
| @@ -994,8 +994,6 @@ public: | |||
| 994 | offscreen_draw_view = NULL; | 994 | offscreen_draw_view = NULL; |
| 995 | delete offscreen_draw_bitmap_1; | 995 | delete offscreen_draw_bitmap_1; |
| 996 | offscreen_draw_bitmap_1 = NULL; | 996 | offscreen_draw_bitmap_1 = NULL; |
| 997 | |||
| 998 | shown_flag = 0; | ||
| 999 | } | 997 | } |
| 1000 | } | 998 | } |
| 1001 | 999 | ||
| @@ -1058,7 +1056,7 @@ public: | |||
| 1058 | return; | 1056 | return; |
| 1059 | } | 1057 | } |
| 1060 | 1058 | ||
| 1061 | if (w->shown_flag) | 1059 | if (w->shown_flag && offscreen_draw_view) |
| 1062 | { | 1060 | { |
| 1063 | PushState (); | 1061 | PushState (); |
| 1064 | SetDrawingMode (B_OP_ERASE); | 1062 | SetDrawingMode (B_OP_ERASE); |