FIX RED Framebuffer_viewport_rewrite
Change-Id: I716929fbee48bef68d7383efb944f9d491fdfe4d
This commit is contained in:
parent
ada919fc11
commit
04e7bacc4c
2 changed files with 8 additions and 1 deletions
|
@ -207,7 +207,7 @@ struct touchbutton reversi_buttons[TOUCHBUTTON_COUNT] =
|
||||||
false, REVERSI_BUTTON_QUIT, false, "Quit", NULL },
|
false, REVERSI_BUTTON_QUIT, false, "Quit", NULL },
|
||||||
|
|
||||||
{ {.x=0, .y=0, .width=XOFS+BOARD_WIDTH,.height=YOFS+BOARD_HEIGHT, .flags=0, .buffer=0,
|
{ {.x=0, .y=0, .width=XOFS+BOARD_WIDTH,.height=YOFS+BOARD_HEIGHT, .flags=0, .buffer=0,
|
||||||
.font=0, .drawmode=DRMODE_SOLID, .fg_pattern=0, .bgpattern=0xFFFF},
|
.font=0, .drawmode=DRMODE_SOLID, .fg_pattern=0, .bg_pattern=0xFFFF},
|
||||||
false, REVERSI_BUTTON_MAKE_MOVE, true, NULL, NULL }
|
false, REVERSI_BUTTON_MAKE_MOVE, true, NULL, NULL }
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -144,6 +144,11 @@ void* plugin_get_buffer(size_t *buffer_size)
|
||||||
return pluginbuf;
|
return pluginbuf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static struct viewport* init_viewport(struct viewport* vp)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
struct user_settings global_settings = {
|
struct user_settings global_settings = {
|
||||||
.statusbar = STATUSBAR_TOP,
|
.statusbar = STATUSBAR_TOP,
|
||||||
#ifdef HAVE_LCD_COLOR
|
#ifdef HAVE_LCD_COLOR
|
||||||
|
@ -179,6 +184,7 @@ struct screen screens[NB_SCREENS] =
|
||||||
#else
|
#else
|
||||||
.is_color=false,
|
.is_color=false,
|
||||||
#endif
|
#endif
|
||||||
|
.init_viewport=init_viewport,
|
||||||
.getwidth = getwidth,
|
.getwidth = getwidth,
|
||||||
.getheight = getheight,
|
.getheight = getheight,
|
||||||
.getuifont = getuifont,
|
.getuifont = getuifont,
|
||||||
|
@ -196,6 +202,7 @@ struct screen screens[NB_SCREENS] =
|
||||||
.depth=LCD_REMOTE_DEPTH,
|
.depth=LCD_REMOTE_DEPTH,
|
||||||
.getuifont = getuifont,
|
.getuifont = getuifont,
|
||||||
.is_color=false,/* No color remotes yet */
|
.is_color=false,/* No color remotes yet */
|
||||||
|
.init_viewport=init_viewport,
|
||||||
.getwidth=remote_getwidth,
|
.getwidth=remote_getwidth,
|
||||||
.getheight=remote_getheight,
|
.getheight=remote_getheight,
|
||||||
#if LCD_REMOTE_DEPTH > 1
|
#if LCD_REMOTE_DEPTH > 1
|
||||||
|
|
Loading…
Reference in a new issue