summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-09-14 06:43:16 +0000
committerDana Jansens <danakj@orodu.net>2003-09-14 06:43:16 +0000
commit960ce01f71e1973fe6f35170f1b55bce464d50dc (patch)
tree17d054b1101d2da393ed3a4815a65ed747e5f096 /render
parentdcc433926c11186725b86d9db10fdb0159d73942 (diff)
use the values passed to the function
Diffstat (limited to 'render')
-rw-r--r--render/theme.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/render/theme.c b/render/theme.c
index e658d873..ac80d19b 100644
--- a/render/theme.c
+++ b/render/theme.c
@@ -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);