Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 107526 | Differences between
and this patch

Collapse All | Expand All

(-)slim-1.2.5/image.cpp.orig (-2 / +2 lines)
Lines 391-397 Link Here
391
void Image::Center(const int w, const int h, const char *hex) {
391
void Image::Center(const int w, const int h, const char *hex) {
392
392
393
    unsigned long packed_rgb;
393
    unsigned long packed_rgb;
394
    sscanf(hex, "%x", &packed_rgb);  
394
    sscanf(hex, "%lx", &packed_rgb);  
395
395
396
    unsigned long r = packed_rgb>>16;
396
    unsigned long r = packed_rgb>>16;
397
    unsigned long g = packed_rgb>>8 & 0xff;
397
    unsigned long g = packed_rgb>>8 & 0xff;
Lines 471-477 Link Here
471
void Image::Plain(const int w, const int h, const char *hex) {
471
void Image::Plain(const int w, const int h, const char *hex) {
472
472
473
    unsigned long packed_rgb;
473
    unsigned long packed_rgb;
474
    sscanf(hex, "%x", &packed_rgb);  
474
    sscanf(hex, "%lx", &packed_rgb);  
475
475
476
    unsigned long r = packed_rgb>>16;
476
    unsigned long r = packed_rgb>>16;
477
    unsigned long g = packed_rgb>>8 & 0xff;
477
    unsigned long g = packed_rgb>>8 & 0xff;

Return to bug 107526