#include "mmcache.h"
#include "mmcat.h"
#include "mmui.h"
+#include "mmui_context.h"
extern pnd_conf_handle g_conf;
extern unsigned char g_pvwcache;
s = scaled;
}
+ // scale for tiny?
+ SDL_Surface *scaled_tiny = SDL_ConvertSurface ( s, s -> format, s -> flags );
+ extern ui_context_t ui_display_context;
+ scaled_tiny = ui_scale_image ( scaled_tiny, -1 , ui_display_context.text_height );
+
// add to cache
c = (mm_cache_t*) malloc ( sizeof(mm_cache_t) );
bzero ( c, sizeof(mm_cache_t) );
strncpy ( c -> uniqueid, app -> unique_id, 1000 );
c -> i = s;
+ c -> itiny = scaled_tiny;
return ( 1 );
}