[haiku-commits] r35892 - haiku/trunk/src/kits/interface

  • From: superstippi@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 17 Mar 2010 13:43:57 +0100 (CET)

Author: stippi
Date: 2010-03-17 13:43:57 +0100 (Wed, 17 Mar 2010)
New Revision: 35892
Changeset: http://dev.haiku-os.org/changeset/35892/haiku

Modified:
   haiku/trunk/src/kits/interface/ColumnListView.cpp
Log:
Use the new cursors.


Modified: haiku/trunk/src/kits/interface/ColumnListView.cpp
===================================================================
--- haiku/trunk/src/kits/interface/ColumnListView.cpp   2010-03-17 12:39:24 UTC 
(rev 35891)
+++ haiku/trunk/src/kits/interface/ColumnListView.cpp   2010-03-17 12:43:57 UTC 
(rev 35892)
@@ -75,58 +75,6 @@
 
 namespace BPrivate {
 
-static const unsigned char kResizeCursorData[] = {
-       16, 1, 8, 8,
-       0x03, 0xc0, 0x02, 0x40, 0x02, 0x40, 0x02, 0x40,
-       0x1a, 0x58, 0x2a, 0x54, 0x4a, 0x52, 0x8a, 0x51,
-       0x8a, 0x51, 0x4a, 0x52, 0x2a, 0x54, 0x1a, 0x58,
-       0x02, 0x40, 0x02, 0x40, 0x02, 0x40, 0x03, 0xc0,
-
-       0x03, 0xc0, 0x03, 0xc0, 0x03, 0xc0, 0x03, 0xc0,
-       0x1b, 0xd8, 0x3b, 0xdc, 0x7b, 0xde, 0xfb, 0xdf,
-       0xfb, 0xdf, 0x7b, 0xde, 0x3b, 0xdc, 0x1b, 0xd8,
-       0x03, 0xc0, 0x03, 0xc0, 0x03, 0xc0, 0x03, 0xc0
-};
-
-static const unsigned char kMaxResizeCursorData[] = {
-       16, 1, 8, 8,
-       0x03, 0xc0, 0x02, 0x40, 0x02, 0x40, 0x02, 0x40,
-       0x1a, 0x40, 0x2a, 0x40, 0x4a, 0x40, 0x8a, 0x40,
-       0x8a, 0x40, 0x4a, 0x40, 0x2a, 0x40, 0x1a, 0x40,
-       0x02, 0x40, 0x02, 0x40, 0x02, 0x40, 0x03, 0xc0,
-
-       0x03, 0xc0, 0x03, 0xc0, 0x03, 0xc0, 0x03, 0xc0,
-       0x1b, 0xc0, 0x3b, 0xc0, 0x7b, 0xc0, 0xfb, 0xc0,
-       0xfb, 0xc0, 0x7b, 0xc0, 0x3b, 0xc0, 0x1b, 0xc0,
-       0x03, 0xc0, 0x03, 0xc0, 0x03, 0xc0, 0x03, 0xc0
-};
-
-static const unsigned char kMinResizeCursorData[] = {
-       16, 1, 8, 8,
-       0x03, 0xc0, 0x02, 0x40, 0x02, 0x40, 0x02, 0x40,
-       0x02, 0x58, 0x02, 0x54, 0x02, 0x52, 0x02, 0x51,
-       0x02, 0x51, 0x02, 0x52, 0x02, 0x54, 0x02, 0x58,
-       0x02, 0x40, 0x02, 0x40, 0x02, 0x40, 0x03, 0xc0,
-
-       0x03, 0xc0, 0x03, 0xc0, 0x03, 0xc0, 0x03, 0xc0,
-       0x03, 0xd8, 0x03, 0xdc, 0x03, 0xde, 0x03, 0xdf,
-       0x03, 0xdf, 0x03, 0xde, 0x03, 0xdc, 0x03, 0xd8,
-       0x03, 0xc0, 0x03, 0xc0, 0x03, 0xc0, 0x03, 0xc0
-};
-
-static const unsigned char kColumnMoveCursorData[] = {
-       16, 1, 8, 8,
-       0x01, 0x80, 0x02, 0x40, 0x04, 0x20, 0x08, 0x10,
-       0x1e, 0x78, 0x2a, 0x54, 0x4e, 0x72, 0x80, 0x01,
-       0x80, 0x01, 0x4e, 0x72, 0x2a, 0x54, 0x1e, 0x78,
-       0x08, 0x10, 0x04, 0x20, 0x02, 0x40, 0x01, 0x80,
-
-       0x01, 0x80, 0x03, 0xc0, 0x07, 0xe0, 0x0f, 0xf0,
-       0x1f, 0xf8, 0x3b, 0xdc, 0x7f, 0xfe, 0xff, 0xff,
-       0xff, 0xff, 0x7f, 0xfe, 0x3b, 0xdc, 0x1f, 0xf8,
-       0x0f, 0xf0, 0x07, 0xe0, 0x03, 0xc0, 0x01, 0x80
-};
-
 static const unsigned char kDownSortArrow8x8[] = {
        0xff, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff,
        0xff, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff,
@@ -2095,10 +2043,14 @@
        fUpSortArrow->SetBits((const void*) kUpSortArrow8x8, 64, 0, B_CMAP8);
        fDownSortArrow->SetBits((const void*) kDownSortArrow8x8, 64, 0, 
B_CMAP8);
 
-       fResizeCursor = new BCursor(kResizeCursorData);
-       fMinResizeCursor = new BCursor(kMinResizeCursorData);
-       fMaxResizeCursor = new BCursor(kMaxResizeCursorData);
-       fColumnMoveCursor = new BCursor(kColumnMoveCursorData);
+//     fResizeCursor = new BCursor(kResizeCursorData);
+//     fMinResizeCursor = new BCursor(kMinResizeCursorData);
+//     fMaxResizeCursor = new BCursor(kMaxResizeCursorData);
+//     fColumnMoveCursor = new BCursor(kColumnMoveCursorData);
+       fResizeCursor = new BCursor(B_CURSOR_ID_RESIZE_EAST_WEST);
+       fMinResizeCursor = new BCursor(B_CURSOR_ID_RESIZE_EAST);
+       fMaxResizeCursor = new BCursor(B_CURSOR_ID_RESIZE_WEST);
+       fColumnMoveCursor = new BCursor(B_CURSOR_ID_MOVE);
 
        FixScrollBar(true);
 }


Other related posts: