removed unused field swap_num.
2007-06-20 Sven Neumann <sven@gimp.org> * app/base/tile-private.h (struct _Tile): removed unused field swap_num. * app/base/tile.c (tile_new): initialise most of the Tile struct in the allocator. svn path=/trunk/; revision=22805
This commit is contained in:

committed by
Sven Neumann

parent
1140960d35
commit
9c8b7e133e
@ -1,3 +1,11 @@
|
|||||||
|
2007-06-20 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* app/base/tile-private.h (struct _Tile): removed unused field
|
||||||
|
swap_num.
|
||||||
|
|
||||||
|
* app/base/tile.c (tile_new): initialise most of the Tile struct
|
||||||
|
in the allocator.
|
||||||
|
|
||||||
2007-06-20 Sven Neumann <sven@gimp.org>
|
2007-06-20 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* plug-ins/script-fu/scheme-wrapper.c (init_constants): hardcode
|
* plug-ins/script-fu/scheme-wrapper.c (init_constants): hardcode
|
||||||
|
@ -79,10 +79,6 @@ struct _Tile
|
|||||||
* case the tile data is on disk.
|
* case the tile data is on disk.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
gint swap_num; /* the index into the file table of the file to be used
|
|
||||||
* for swapping. swap_num 1 is always the global
|
|
||||||
* swap file.
|
|
||||||
*/
|
|
||||||
gint64 swap_offset; /* the offset within the swap file of the tile data.
|
gint64 swap_offset; /* the offset within the swap file of the tile data.
|
||||||
* if the tile data is in memory this will be set
|
* if the tile data is in memory this will be set
|
||||||
* to -1.
|
* to -1.
|
||||||
|
@ -110,24 +110,12 @@ tile_set_rowhint (Tile *tile,
|
|||||||
Tile *
|
Tile *
|
||||||
tile_new (gint bpp)
|
tile_new (gint bpp)
|
||||||
{
|
{
|
||||||
Tile *tile = g_slice_new (Tile);
|
Tile *tile = g_slice_new0 (Tile);
|
||||||
|
|
||||||
tile->ref_count = 0;
|
|
||||||
tile->write_count = 0;
|
|
||||||
tile->share_count = 0;
|
|
||||||
tile->dirty = FALSE;
|
|
||||||
tile->valid = FALSE;
|
|
||||||
tile->data = NULL;
|
|
||||||
tile->ewidth = TILE_WIDTH;
|
tile->ewidth = TILE_WIDTH;
|
||||||
tile->eheight = TILE_HEIGHT;
|
tile->eheight = TILE_HEIGHT;
|
||||||
tile->bpp = bpp;
|
tile->bpp = bpp;
|
||||||
tile->swap_num = 1;
|
|
||||||
tile->swap_offset = -1;
|
tile->swap_offset = -1;
|
||||||
tile->tlink = NULL;
|
|
||||||
tile->next = NULL;
|
|
||||||
tile->prev = NULL;
|
|
||||||
tile->listhead = NULL;
|
|
||||||
tile->rowhint = NULL;
|
|
||||||
|
|
||||||
#ifdef TILE_PROFILING
|
#ifdef TILE_PROFILING
|
||||||
tile_count++;
|
tile_count++;
|
||||||
|
Reference in New Issue
Block a user