summaryrefslogtreecommitdiff
path: root/src/interface.c
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-11-18 19:38:08 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-11-18 19:38:08 (GMT)
commitf50801333214e79492dd72c23f05cd4bc84fcf54 (patch)
tree3b6f934b80c45f1c696c0f8b1ae5f67c743b25b4 /src/interface.c
parent8a962b2f9605672627c077d2878c03fab53495a4 (diff)
downloadpowder-f50801333214e79492dd72c23f05cd4bc84fcf54.zip
powder-f50801333214e79492dd72c23f05cd4bc84fcf54.tar.gz
New tables in lua API: el and version: element ids and version info respectively. New lua functions: element (get element id from name) and element_func for hooking/overriding element update functions
Diffstat (limited to 'src/interface.c')
-rw-r--r--src/interface.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/interface.c b/src/interface.c
index b44d1cd..7b83426 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -5167,6 +5167,10 @@ char *console_ui(pixel *vid_buf,char error[255],char console_more) {
ui_edit_draw(vid_buf, &ed);
ui_edit_process(mx, my, b, &ed);
sdl_blit(0, 0, (XRES+BARSIZE), YRES+MENUSIZE, vid_buf, (XRES+BARSIZE));
+#ifdef OGLR
+ clearScreenNP(1.0f);
+ draw_parts_fbo();
+#endif
if (sdl_key==SDLK_RETURN)
{
currentcommand = malloc(sizeof(command_history));
@@ -6437,7 +6441,10 @@ void render_ui(pixel * vid_buf, int xcoord, int ycoord, int orientation)
}
sdl_blit(0, 0, (XRES+BARSIZE), YRES+MENUSIZE, vid_buf, (XRES+BARSIZE));
-
+#ifdef OGLR
+ clearScreenNP(1.0f);
+ draw_parts_fbo();
+#endif
if (sdl_key==SDLK_RETURN)
break;
if (sdl_key==SDLK_ESCAPE)