From 34905c1aa0d7cb2dc7e3c709db36b7d0f556fd88 Mon Sep 17 00:00:00 2001 From: scuri Date: Thu, 13 May 2010 21:03:56 +0000 Subject: *** empty log message *** --- src/drv/cdirgb.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'src/drv/cdirgb.c') diff --git a/src/drv/cdirgb.c b/src/drv/cdirgb.c index 8135fa1..f0eb98e 100644 --- a/src/drv/cdirgb.c +++ b/src/drv/cdirgb.c @@ -1341,7 +1341,7 @@ static void cdputimagerectrgba(cdCtxCanvas* ctxcanvas, int iw, int ih, const uns static void cdputimagerectmap(cdCtxCanvas* ctxcanvas, int iw, int ih, const unsigned char *index, const long int *colors, int x, int y, int w, int h, int xmin, int xmax, int ymin, int ymax) { - int l, c, xsize, ysize, xpos, ypos, src_offset, dst_offset, rw, rh, pal_size, idx, img_topdown = 0; + int l, c, xsize, ysize, xpos, ypos, src_offset, dst_offset, rw, rh, idx, img_topdown = 0; const unsigned char *src_index; if (ctxcanvas->canvas->use_matrix) @@ -1371,22 +1371,6 @@ static void cdputimagerectmap(cdCtxCanvas* ctxcanvas, int iw, int ih, const unsi rw = xmax-xmin+1; rh = ymax-ymin+1; - /* Como nao sabemos o tamanho da palette a priori, - teremos que ver qual o maior indice usado na imagem. */ - pal_size = 0; - - for (l=0; l pal_size) - pal_size = idx; - } - } - - pal_size++; - /* testa se tem que fazer zoom */ if (rw != w || rh != h) { -- cgit v1.2.3