Skip to content

Commit 9466356

Browse files
committed
Additional minor fixes and incremented repeat interval
1 parent f491d23 commit 9466356

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

sim-static/draw.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ display_new (int width, int height)
104104
return NULL;
105105
}
106106

107-
new->renderer = SDL_CreateRenderer (new->window, -1, 0);
107+
new->renderer = SDL_CreateRenderer (new->window, -1, 0);
108108
new->screen = SDL_GetWindowSurface (new->window);
109-
109+
110110
SDL_UpdateWindowSurface (new->window);
111-
111+
112112
#else
113113
if ((new->screen = try_sdl_traditional (width, height)) == NULL)
114114
{

src/main.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ vix_console_onsubmit (enum simtk_event_type type, struct simtk_widget *widget, s
292292
}
293293

294294
simtk_entry_clear (widget);
295+
296+
return HOOK_RESUME_CHAIN;
295297
}
296298

297299
int
@@ -328,7 +330,7 @@ main (int argc, char *argv[], char *envp[])
328330
exit (EXIT_FAILURE);
329331

330332
#ifndef SDL2_ENABLED
331-
SDL_EnableKeyRepeat (SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL / 4);
333+
SDL_EnableKeyRepeat (SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);
332334
#endif
333335

334336
if (simtk_init_from_display (disp) == -1)

src/map.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ PTR_LIST (struct filemap, map);
3636
static int drag_flag;
3737
static int drag_start_x;
3838
static int drag_start_y;
39-
static int moves;
4039

4140
int last_id;
4241

@@ -257,6 +256,8 @@ generic_onkeydown (enum simtk_event_type type,
257256

258257
filemap_jump_to_offset (map, (region->start >> 4) << 4);
259258
}
259+
260+
return HOOK_RESUME_CHAIN;
260261
}
261262

262263
int

0 commit comments

Comments
 (0)