Commit 42185929 authored by scott's avatar scott

Added an assertion check in tile_manager.c to catch inappropriate sharing

attempts.  --sg
parent 81a6cba1
Sat Aug 1 20:50:47 1998 Scott Goehring <scott@poverty.bloomington.in.us>
* app/tile_manager.c: Added an assertion check in tile_manager_map
Fri Jul 31 15:41:30 PDT 1998 Manish Singh <yosh@gimp.org>
* applied gimp-alt-980729-0 and gimp-alt-980730-0, adds brush
......
......@@ -596,6 +596,11 @@ tile_manager_map (TileManager *tm,
/* printf(")");fflush(stdout);*/
TILE_MUTEX_LOCK (*tile_ptr);
if ((*tile_ptr)->ewidth != srctile->ewidth ||
(*tile_ptr)->eheight != srctile->eheight ||
(*tile_ptr)->bpp != srctile->bpp) {
g_warning ("tile_manager_map: nonconformant map (%p -> %p)",
srctile, *tile_ptr);
tile_detach (*tile_ptr, tm, tile_num);
/* printf(">");fflush(stdout);*/
......
......@@ -596,6 +596,11 @@ tile_manager_map (TileManager *tm,
/* printf(")");fflush(stdout);*/
TILE_MUTEX_LOCK (*tile_ptr);
if ((*tile_ptr)->ewidth != srctile->ewidth ||
(*tile_ptr)->eheight != srctile->eheight ||
(*tile_ptr)->bpp != srctile->bpp) {
g_warning ("tile_manager_map: nonconformant map (%p -> %p)",
srctile, *tile_ptr);
tile_detach (*tile_ptr, tm, tile_num);
/* printf(">");fflush(stdout);*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment