]> Dogcows Code - chaz/openbox/commitdiff
use the values passed to the function
authorDana Jansens <danakj@orodu.net>
Sun, 14 Sep 2003 06:43:16 +0000 (06:43 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 14 Sep 2003 06:43:16 +0000 (06:43 +0000)
render/theme.c

index e658d8731f8a264eba9af2ecabe97866aacef509..ac80d19ba52d7d58c2700e6c974b0f09a1bd0867 100644 (file)
@@ -1291,11 +1291,9 @@ static RrPixel32* read_c_image(gint width, gint height, const guint8 *data)
     RrPixel32 *im, *p;
     gint i;
 
-    p = im = g_memdup(OB_DEFAULT_ICON_pixel_data,
-                      OB_DEFAULT_ICON_WIDTH * OB_DEFAULT_ICON_HEIGHT *
-                      sizeof(RrPixel32));
+    p = im = g_memdup(data, width * height * sizeof(RrPixel32));
 
-    for (i = 0; i < OB_DEFAULT_ICON_WIDTH*OB_DEFAULT_ICON_HEIGHT; ++i) {
+    for (i = 0; i < width * height; ++i) {
         guchar a = ((*p >> 24) & 0xff);
         guchar b = ((*p >> 16) & 0xff);
         guchar g = ((*p >>  8) & 0xff);
This page took 0.02698 seconds and 4 git commands to generate.