[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kstyles/plastik
From:       Luciano Montanaro <mikelima () cirulla ! net>
Date:       2005-05-08 13:28:45
Message-ID: 1115558925.085860.4250.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 410846 by montanaro:

CCMAIL: ceebx@users.sourceforge.net

Made the bitmap data 'const'.



 M  +13 -13    trunk/KDE/kdelibs/kstyles/plastik/plastik.cpp  


--- trunk/KDE/kdelibs/kstyles/plastik/plastik.cpp #410845:410846
@@ -74,53 +74,53 @@
 
 // some bitmaps for the radio button so it's easier to handle the circle stuff...
 // 13x13
-static unsigned char radiobutton_mask_bits[] = {
+static const unsigned char radiobutton_mask_bits[] = {
    0xf8, 0x03, 0xfc, 0x07, 0xfe, 0x0f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f,
    0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xff, 0x1f, 0xfe, 0x0f, 0xfc, 0x07,
    0xf8, 0x03};
-static unsigned char radiobutton_contour_bits[] = {
+static const unsigned char radiobutton_contour_bits[] = {
    0xf0, 0x01, 0x0c, 0x06, 0x02, 0x08, 0x02, 0x08, 0x01, 0x10, 0x01, 0x10,
    0x01, 0x10, 0x01, 0x10, 0x01, 0x10, 0x02, 0x08, 0x02, 0x08, 0x0c, 0x06,
    0xf0, 0x01};
-static unsigned char radiobutton_aa_inside_bits[] = {
+static const unsigned char radiobutton_aa_inside_bits[] = {
    0x00, 0x00, 0x10, 0x01, 0x04, 0x04, 0x00, 0x00, 0x02, 0x08, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x02, 0x08, 0x00, 0x00, 0x04, 0x04, 0x10, 0x01,
    0x00, 0x00};
-static unsigned char radiobutton_aa_outside_bits[] = {
+static const unsigned char radiobutton_aa_outside_bits[] = {
    0x08, 0x02, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x00, 0x00, 0x00, 0x00,
    0x08, 0x02};
-static unsigned char radiobutton_highlight1_bits[] = {
+static const unsigned char radiobutton_highlight1_bits[] = {
    0x00, 0x00, 0xf0, 0x01, 0x1c, 0x07, 0x04, 0x04, 0x06, 0x0c, 0x02, 0x08,
    0x02, 0x08, 0x02, 0x08, 0x06, 0x0c, 0x04, 0x04, 0x1c, 0x07, 0xf0, 0x01,
    0x00, 0x00};
-static unsigned char radiobutton_highlight2_bits[] = {
+static const unsigned char radiobutton_highlight2_bits[] = {
    0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x18, 0x03, 0x08, 0x02, 0x04, 0x04,
    0x04, 0x04, 0x04, 0x04, 0x08, 0x02, 0x18, 0x03, 0xe0, 0x00, 0x00, 0x00,
    0x00, 0x00};
 // check mark
 const uint CHECKMARKSIZE = 9; // 9x9
-static unsigned char checkmark_aa_bits[] = {
+static const unsigned char checkmark_aa_bits[] = {
    0x45, 0x01, 0x28, 0x00, 0x11, 0x01, 0x82, 0x00, 0x44, 0x00, 0x82, 0x00,
    0x11, 0x01, 0x28, 0x00, 0x45, 0x01};
-static unsigned char checkmark_dark_bits[] = {
+static const unsigned char checkmark_dark_bits[] = {
    0x82, 0x00, 0x45, 0x01, 0xaa, 0x00, 0x54, 0x00, 0x28, 0x00, 0x74, 0x00,
    0xea, 0x00, 0xc5, 0x01, 0x82, 0x00};
-static unsigned char checkmark_light_bits[] = {
+static const unsigned char checkmark_light_bits[] = {
    0x00, 0xfe, 0x82, 0xfe, 0x44, 0xfe, 0x28, 0xfe, 0x10, 0xfe, 0x08, 0xfe,
    0x04, 0xfe, 0x02, 0xfe, 0x00, 0xfe};
-static unsigned char checkmark_tristate_bits[] = {
+static const unsigned char checkmark_tristate_bits[] = {
    0x00, 0x00, 0xff, 0x01, 0x00, 0x00, 0xff, 0x01, 0x00, 0x00, 0xff, 0x01,
    0x00, 0x00, 0xff, 0x01, 0x00, 0x00};
 // radio mark
 const uint RADIOMARKSIZE = 9; // 9x9
-static unsigned char radiomark_aa_bits[] = {
+static const unsigned char radiomark_aa_bits[] = {
    0x00, 0x00, 0x44, 0x00, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x82, 0x00, 0x44, 0x00, 0x00, 0x00};
-static unsigned char radiomark_dark_bits[] = {
+static const unsigned char radiomark_dark_bits[] = {
    0x00, 0x00, 0x38, 0x00, 0x44, 0x00, 0xf2, 0x00, 0xfa, 0x00, 0xfa, 0x00,
    0x7c, 0x00, 0x38, 0x00, 0x00, 0x00};
-static unsigned char radiomark_light_bits[] = {
+static const unsigned char radiomark_light_bits[] = {
    0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0x0c, 0x00, 0x04, 0x00, 0x04, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic