[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freesci-develop] r1581 - in freesci/branches/glutton: . src/gfx
From: |
freesci |
Subject: |
[freesci-develop] r1581 - in freesci/branches/glutton: . src/gfx |
Date: |
Mon, 06 Nov 2006 10:29:41 +0100 |
Author: skovmanden
Date: 2006-11-06 10:29:34 +0100 (Mon, 06 Nov 2006)
New Revision: 1581
Modified:
freesci/branches/glutton/ChangeLog
freesci/branches/glutton/src/gfx/gfx_tools.c
Log:
Fix a Valgrind warning (thanks, Matt!). You may need a total recompile
to fix this (or perhaps it's just me).
Lars
Modified: freesci/branches/glutton/ChangeLog
===================================================================
--- freesci/branches/glutton/ChangeLog 2006-11-05 22:32:44 UTC (rev 1580)
+++ freesci/branches/glutton/ChangeLog 2006-11-06 09:29:34 UTC (rev 1581)
@@ -1,3 +1,10 @@
+2006-11-06 Lars Skovlund <address@hidden>
+
+ * src/gfx/gfx_tools.c (gfx_pixmap_alloc_index_data): Initialize
+ index data properly.
+
+ * src/engine/kgraphics.c (kIsItSkip): New kernel call.
+
2006-11-02 Lars Skovlund <address@hidden>
* src/gfx/resource/sci_pic_0.c: Proper support for overlaid pics
Modified: freesci/branches/glutton/src/gfx/gfx_tools.c
===================================================================
--- freesci/branches/glutton/src/gfx/gfx_tools.c 2006-11-05 22:32:44 UTC
(rev 1580)
+++ freesci/branches/glutton/src/gfx/gfx_tools.c 2006-11-06 09:29:34 UTC
(rev 1581)
@@ -230,9 +230,9 @@
size = 1;
pixmap->index_data = sci_malloc(size);
-#ifdef SATISFY_PURIFY
+
memset(pixmap->index_data, 0, size);
-#endif
+
return pixmap;
}
@@ -375,13 +375,13 @@
}
if (color->global_index >= pal->max_colors_nr) {
- GFXERROR("Attempt to free invalid color index 0x%d
(%02x/%02x/%02x)!\n",
+ GFXERROR("Attempt to free invalid color index %d
(%02x/%02x/%02x)!\n",
color->global_index, color->r, color->g, color->b);
return GFX_ERROR;
}
if (!palette_color->lockers) {
- GFXERROR("Attempt to free unused color index 0x%d
(%02x/%02x/%02x)!\n",
+ GFXERROR("Attempt to free unused color index %d
(%02x/%02x/%02x)!\n",
color->global_index, color->r, color->g, color->b);
return GFX_ERROR;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freesci-develop] r1581 - in freesci/branches/glutton: . src/gfx,
freesci <=