Fix so preview pics will scale correctly
authorskeezix <skeezix@flotsam-vm.(none)>
Tue, 9 Mar 2010 16:28:10 +0000 (11:28 -0500)
committerskeezix <skeezix@flotsam-vm.(none)>
Tue, 9 Mar 2010 16:28:10 +0000 (11:28 -0500)
minimenu/mmcache.c
minimenu/mmcache.h

index 7df2c63..7549d8d 100644 (file)
@@ -24,7 +24,7 @@ extern pnd_conf_handle g_conf;
 mm_cache_t *g_icon_cache = NULL;
 mm_cache_t *g_preview_cache = NULL;
 
-unsigned char cache_preview ( pnd_disco_t *app, unsigned char maxwidth, unsigned char maxheight ) {
+unsigned char cache_preview ( pnd_disco_t *app, unsigned int maxwidth, unsigned int maxheight ) {
   SDL_Surface *s;
   mm_cache_t *c;
 
index de12c44..6a5f39a 100644 (file)
@@ -18,7 +18,7 @@ typedef struct _mm_cache_t {
 } mm_cache_t;
 
 unsigned char cache_icon ( pnd_disco_t *app, unsigned char maxwidth, unsigned char maxheight );
-unsigned char cache_preview ( pnd_disco_t *app, unsigned char maxwidth, unsigned char maxheight );
+unsigned char cache_preview ( pnd_disco_t *app, unsigned int maxwidth, unsigned int maxheight );
 
 mm_cache_t *cache_query ( char *id, mm_cache_t *head );
 mm_cache_t *cache_query_icon ( char *id ); // specialized version