~cmiller/ubuntu/trusty/icewm/translations-cause-crash-lp447883

« back to all changes in this revision

Viewing changes to src/ycursor.cc

  • Committer: Bazaar Package Importer
  • Author(s): Eduard Bloch
  • Date: 2009-01-26 00:18:14 UTC
  • mfrom: (1.3.1 upstream) (5.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090126001814-ea5ceoy4uroruz72
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
151
151
                    }
152
152
            }
153
153
    
154
 
    fForeground.red = fg.r << 8; // -- alloc the background/foreground color ---
155
 
    fForeground.green = fg.g << 8;
156
 
    fForeground.blue = fg.b << 8;
 
154
    fForeground.red = (unsigned short)(fg.r << 8); // -- alloc the background/foreground color ---
 
155
    fForeground.green = (unsigned short)(fg.g << 8);
 
156
    fForeground.blue = (unsigned short)(fg.b << 8);
157
157
    XAllocColor(xapp->display(), xapp->colormap(), &fForeground);
158
158
 
159
 
    fBackground.red = bg.r << 8;
160
 
    fBackground.green = bg.g << 8;
161
 
    fBackground.blue = bg.b << 8;
 
159
    fBackground.red = (unsigned short)(bg.r << 8);
 
160
    fBackground.green = (unsigned short)(bg.g << 8);
 
161
    fBackground.blue = (unsigned short)(bg.b << 8);
162
162
    XAllocColor(xapp->display(), xapp->colormap(), &fBackground);
163
163
 
164
164
    // ----------------- find the hotspot by reading the xpm header manually ---