Skip to content

Commit ba33b36

Browse files
clhinmetux
authored andcommitted
xnest icons: const correctness
1 parent 40f0a42 commit ba33b36

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

hw/xnest/Display.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@ xnestOpenDisplay(int argc, char *argv[])
113113
xnestIconBitmap =
114114
xnest_create_bitmap_from_data(xnestUpstreamInfo.conn,
115115
xnestUpstreamInfo.screenInfo->root,
116-
(char *) icon_bits, icon_width, icon_height);
116+
(const char *) icon_bits, icon_width, icon_height);
117117

118118
xnestScreenSaverPixmap =
119119
xnest_create_pixmap_from_bitmap_data(
120120
xnestUpstreamInfo.conn,
121121
xnestUpstreamInfo.screenInfo->root,
122-
(char *) screensaver_bits,
122+
(const char *) screensaver_bits,
123123
screensaver_width,
124124
screensaver_height,
125125
xnestUpstreamInfo.screenInfo->white_pixel,

hw/xnest/icon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#define icon_width 32
22
#define icon_height 32
3-
static unsigned char icon_bits[] = {
3+
static const unsigned char icon_bits[] = {
44
0xff, 0x00, 0x00, 0xc0, 0xfe, 0x01, 0x00, 0xc0, 0xfc, 0x03, 0x00, 0x60,
55
0xf8, 0x07, 0x00, 0x30, 0xf8, 0x07, 0x00, 0x18, 0xf0, 0x0f, 0x00, 0x0c,
66
0xe0, 0x1f, 0x00, 0x06, 0xc0, 0x3f, 0x00, 0x06, 0xc0, 0x3f, 0x00, 0x03,

hw/xnest/screensaver

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#define screensaver_width 256
22
#define screensaver_height 256
3-
static unsigned char screensaver_bits[] = {
3+
static const unsigned char screensaver_bits[] = {
44
0xa8, 0x00, 0xa0, 0xaa, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x80, 0x02, 0x00,
55
0x00, 0x00, 0x00, 0xa8, 0xaa, 0x02, 0x00, 0x80, 0x0a, 0x00, 0x00, 0x00,
66
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x54, 0x00, 0x40, 0x55,

0 commit comments

Comments
 (0)