changeset: 27:c01ce3b4d999
tag: tip
user: pancake <pancake_AT_nopcode.org>
date: Wed Apr 28 16:54:52 2010 +0200
files: config.def.h gi_sdl.c
description:
Fix segfault and some keys in n900
diff -r 3bd77e24c15b -r c01ce3b4d999 config.def.h
--- a/config.def.h Wed Apr 28 12:17:04 2010 +0200
+++ b/config.def.h Wed Apr 28 16:54:52 2010 +0200
@@ -8,7 +8,7 @@
#endif
/* appearance */
-#define FONTSIZE 14
+#define FONTSIZE 40
#define FONTBOLD 1
#define WINWIDTH 640
#define WINHEIGHT 480
@@ -32,12 +32,13 @@
{ Ctrl, 10 , swk_focus_next },
{ Ctrl, 11 , swk_focus_prev },
{ Ctrl, 12 , swk_focus_activate },
+ { 0, 225, swk_focus_activate }, // n900 enter
{ 0 , KUp, swk_focus_prev },
{ 0 , KDown, swk_focus_next },
{ 0 , 13 , swk_focus_activate },
{ Ctrl, 12 , swk_focus_activate },
- { Ctrl, 10, swk_scroll_up },
- { Ctrl, 11, swk_scroll_down },
+ { Ctrl|Shift, 10, swk_scroll_down },
+ { Ctrl|Shift, 11, swk_scroll_up },
{ Ctrl, '+', swk_fontsize_increase },
{ Ctrl, '-', swk_fontsize_decrease },
{ 0 }
diff -r 3bd77e24c15b -r c01ce3b4d999 gi_sdl.c
--- a/gi_sdl.c Wed Apr 28 12:17:04 2010 +0200
+++ b/gi_sdl.c Wed Apr 28 16:54:52 2010 +0200
@@ -114,10 +114,10 @@
if(has_event);
switch(event.type) {
default: ret = NULL; break;
- case SDL_ACTIVEEVENT:
case SDL_VIDEORESIZE:
fprintf(stderr, "resize %d %d\n", event.resize.w, event.resize.h);
SDL_SetVideoMode(event.resize.w, event.resize.h, BPP, SDLFLAGS);
+ case SDL_ACTIVEEVENT:
case SDL_VIDEOEXPOSE:
ret->type = EExpose;
ret->data.expose.x = ret->data.expose.y = \
Received on Wed Apr 28 2010 - 15:01:17 UTC
This archive was generated by hypermail 2.2.0 : Wed Apr 28 2010 - 15:12:03 UTC