mirror of
https://github.com/koreader/koreader
synced 2024-11-10 01:10:34 +00:00
Remove the local variable render_mode from drawPage() (although it would be optimized away by gcc anyway).
This commit is contained in:
parent
0d23340738
commit
7f6d3097a2
3
djvu.c
3
djvu.c
@ -377,8 +377,7 @@ static int drawPage(lua_State *L) {
|
|||||||
DjvuPage *page = (DjvuPage*) luaL_checkudata(L, 1, "djvupage");
|
DjvuPage *page = (DjvuPage*) luaL_checkudata(L, 1, "djvupage");
|
||||||
DrawContext *dc = (DrawContext*) luaL_checkudata(L, 2, "drawcontext");
|
DrawContext *dc = (DrawContext*) luaL_checkudata(L, 2, "drawcontext");
|
||||||
BlitBuffer *bb = (BlitBuffer*) luaL_checkudata(L, 3, "blitbuffer");
|
BlitBuffer *bb = (BlitBuffer*) luaL_checkudata(L, 3, "blitbuffer");
|
||||||
int render_mode = (int) luaL_checkint(L, 6);
|
ddjvu_render_mode_t djvu_render_mode = (int) luaL_checkint(L, 6);
|
||||||
ddjvu_render_mode_t djvu_render_mode = render_mode;
|
|
||||||
unsigned char adjusted_low[16], adjusted_high[16];
|
unsigned char adjusted_low[16], adjusted_high[16];
|
||||||
int i, adjust_pixels = 0;
|
int i, adjust_pixels = 0;
|
||||||
ddjvu_format_t *pixelformat;
|
ddjvu_format_t *pixelformat;
|
||||||
|
Loading…
Reference in New Issue
Block a user