switched blitbuffer to 4bpp (from 8bpp alpha + 8bpp gray)

this should allow to cache more, bigger pixmaps. We'll need this for
zoomed-in pages.
This commit is contained in:
HW
2011-11-20 21:29:59 +01:00
parent 13fc5cefbb
commit c2dd2d9897
4 changed files with 26 additions and 19 deletions

View File

@@ -21,7 +21,7 @@
static int newBlitBuffer(lua_State *L) {
int w = luaL_checkint(L, 1);
int h = luaL_checkint(L, 2);
BlitBuffer *bb = (BlitBuffer*) lua_newuserdata(L, sizeof(BlitBuffer) + (w * h * BLITBUFFER_BYTESPP) - 1);
BlitBuffer *bb = (BlitBuffer*) lua_newuserdata(L, sizeof(BlitBuffer) + (w * h / 2) - 1);
luaL_getmetatable(L, "blitbuffer");
lua_setmetatable(L, -2);