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

attempts.  --sg
This commit is contained in:
scott 1998-08-02 01:52:43 +00:00
parent 81a6cba140
commit 42185929c3
3 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,7 @@
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

View File

@ -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);*/

View File

@ -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);*/