aboutsummaryrefslogtreecommitdiffstats
path: root/channels/console_gui.c
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-27 17:26:16 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-27 17:26:16 +0000
commit115c729a357cf476226c7bde307fa3f55bbaff32 (patch)
tree891f7281f2e31b1443c016ca84933665482e9a60 /channels/console_gui.c
parent1c3afe88760ae8a5fa0187f58f0e21922b771ed9 (diff)
more localization of gui stuff
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94904 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/console_gui.c')
-rw-r--r--channels/console_gui.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/channels/console_gui.c b/channels/console_gui.c
index 0d3a19add..80ad58df3 100644
--- a/channels/console_gui.c
+++ b/channels/console_gui.c
@@ -744,7 +744,6 @@ static void sdl_setup(struct video_desc *env)
int depth, maxw, maxh;
const SDL_VideoInfo *info;
int kp_w = 0, kp_h = 0; /* keypad width and height */
- int sdl_ok = 0;
struct gui_info *gui = env->gui;
/*
@@ -775,9 +774,6 @@ static void sdl_setup(struct video_desc *env)
env->gui = gui = gui_init();
if (!gui)
goto no_sdl;
- /* initialize grab coordinates */
- env->out.loc_src.x = 0;
- env->out.loc_src.y = 0;
keypad_setup(gui, env->keypad_file);
#if 0
@@ -811,7 +807,7 @@ static void sdl_setup(struct video_desc *env)
/* display the skin, but do not free it as we need it later to
* restore text areas and maybe sliders too.
*/
- if (gui && gui->keypad) {
+ if (gui->keypad) {
struct SDL_Rect *dest = &gui->win[WIN_KEYPAD].rect;
dest->x = 2*BORDER + env->in.rem_dpy.w;
dest->y = BORDER;
@@ -820,13 +816,11 @@ static void sdl_setup(struct video_desc *env)
SDL_BlitSurface(gui->keypad, NULL, gui->screen, dest);
SDL_UpdateRects(gui->screen, 1, dest);
}
- env->in.dec_in_cur = &env->in.dec_in[0];
- env->in.dec_in_dpy = NULL; /* nothing to display */
- sdl_ok = 1;
+ return;
no_sdl:
- if (!sdl_ok) /* free resources in case of errors */
- env->gui = cleanup_sdl(gui);
+ /* free resources in case of errors */
+ env->gui = cleanup_sdl(gui);
}
/*