aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPo Lu2022-04-27 08:07:39 +0000
committerPo Lu2022-04-27 08:07:56 +0000
commitd4e3e548f5519e98c2fc842daf73a6acac7faa70 (patch)
treebc1dadd03e892982f5e603954a5e9059dad13d29
parent1e0c4883b7e26f93c0e5b8e745a055b7682c653a (diff)
downloademacs-d4e3e548f5519e98c2fc842daf73a6acac7faa70.tar.gz
emacs-d4e3e548f5519e98c2fc842daf73a6acac7faa70.zip
Remove some unnecessary code
* src/haiku_support.cc (class EmacsView, AfterResize) (SetUpDoubleBuffering): Remove `cspace' field since it's always RGBA32.
-rw-r--r--src/haiku_support.cc12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/haiku_support.cc b/src/haiku_support.cc
index b2edcd30998..6dea2d36206 100644
--- a/src/haiku_support.cc
+++ b/src/haiku_support.cc
@@ -1410,8 +1410,6 @@ public:
1410 BPoint tt_absl_pos; 1410 BPoint tt_absl_pos;
1411 BMessage *wait_for_release_message = NULL; 1411 BMessage *wait_for_release_message = NULL;
1412 1412
1413 color_space cspace;
1414
1415 EmacsView () : BView (BRect (0, 0, 0, 0), "Emacs", B_FOLLOW_NONE, B_WILL_DRAW) 1413 EmacsView () : BView (BRect (0, 0, 0, 0), "Emacs", B_FOLLOW_NONE, B_WILL_DRAW)
1416 { 1414 {
1417 1415
@@ -1435,12 +1433,6 @@ public:
1435 } 1433 }
1436 1434
1437 void 1435 void
1438 AttachedToWindow (void)
1439 {
1440 cspace = B_RGBA32;
1441 }
1442
1443 void
1444 MessageReceived (BMessage *msg) 1436 MessageReceived (BMessage *msg)
1445 { 1437 {
1446 uint32 buttons; 1438 uint32 buttons;
@@ -1551,7 +1543,7 @@ public:
1551#endif 1543#endif
1552 offscreen_draw_view->RemoveSelf (); 1544 offscreen_draw_view->RemoveSelf ();
1553 delete offscreen_draw_bitmap_1; 1545 delete offscreen_draw_bitmap_1;
1554 offscreen_draw_bitmap_1 = new BBitmap (Frame (), cspace, 1); 1546 offscreen_draw_bitmap_1 = new BBitmap (Frame (), B_RGBA32, 1);
1555 if (offscreen_draw_bitmap_1->InitCheck () != B_OK) 1547 if (offscreen_draw_bitmap_1->InitCheck () != B_OK)
1556 gui_abort ("Offscreen draw bitmap initialization failed"); 1548 gui_abort ("Offscreen draw bitmap initialization failed");
1557 1549
@@ -1659,7 +1651,7 @@ public:
1659 if (offscreen_draw_view) 1651 if (offscreen_draw_view)
1660 gui_abort ("Failed to lock offscreen view setting up double buffering"); 1652 gui_abort ("Failed to lock offscreen view setting up double buffering");
1661 1653
1662 offscreen_draw_bitmap_1 = new BBitmap (Frame (), cspace, 1); 1654 offscreen_draw_bitmap_1 = new BBitmap (Frame (), B_RGBA32, 1);
1663 if (offscreen_draw_bitmap_1->InitCheck () != B_OK) 1655 if (offscreen_draw_bitmap_1->InitCheck () != B_OK)
1664 gui_abort ("Failed to init offscreen bitmap"); 1656 gui_abort ("Failed to init offscreen bitmap");
1665#ifdef USE_BE_CAIRO 1657#ifdef USE_BE_CAIRO