~ctwm/ctwm/trunk

« back to all changes in this revision

Viewing changes to icons_builtin.c

  • Committer: Matthew Fuller
  • Date: 2016-07-31 13:00:13 UTC
  • mto: This revision was merged to the branch mainline in revision 506.
  • Revision ID: fullermd@over-yonder.net-20160731130013-vkc9slljr8yoq53h
These vars are really unsigned, and the only places casting the value
where casting it to unsigned, so just make 'em unsigned.

Show diffs side-by-side

added added

removed removed

Lines of Context:
168
168
 * XXX Should move creation of the 2d variant here for consistency.
169
169
 */
170
170
 
171
 
const int im_iconified_icon_width = 11;
172
 
const int im_iconified_icon_height = 11;
 
171
const unsigned int im_iconified_icon_width = 11;
 
172
const unsigned int im_iconified_icon_height = 11;
173
173
static unsigned char im_iconified_icon_bits[] = {
174
174
        0xff, 0x07, 0x01, 0x04, 0x0d, 0x05, 0x9d, 0x05, 0xb9, 0x04, 0x51, 0x04,
175
175
        0xe9, 0x04, 0xcd, 0x05, 0x85, 0x05, 0x01, 0x04, 0xff, 0x07
178
178
Pixmap
179
179
Create3DIconManagerIcon(ColorPair cp)
180
180
{
181
 
        unsigned int w, h;
182
181
        struct Colori *col;
183
182
        static struct Colori *colori = NULL;
184
 
 
185
 
        w = im_iconified_icon_width;
186
 
        h = im_iconified_icon_height;
 
183
        const unsigned int w = im_iconified_icon_width;
 
184
        const unsigned int h = im_iconified_icon_height;
187
185
 
188
186
        for(col = colori; col; col = col->next) {
189
187
                if(col->color == cp.back) {
208
206
Create2DIconManagerIcon(void)
209
207
{
210
208
        char *bits = (char *)im_iconified_icon_bits;
211
 
        const int w = im_iconified_icon_width;
212
 
        const int h = im_iconified_icon_height;
 
209
        const unsigned int w = im_iconified_icon_width;
 
210
        const unsigned int h = im_iconified_icon_height;
213
211
 
214
212
        return XCreatePixmapFromBitmapData(dpy, Scr->Root, bits, w, h, 1, 0, 1);
215
213
}