From ade661fb42eb4040a86dfdd810bc7960ea643f7f Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Thu, 31 Aug 2000 16:07:07 +0000 Subject: Sync with latest changes in sdl-devel port: - add svgalib support (tested with C&T65554); - make it USE_LIBTOOL; - remove spaces between `@' and `$' in targets; - decrease amount of tabs used to make variables indentation from 2 to 1. --- devel/sdl/files/patch-an | 123 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 devel/sdl/files/patch-an (limited to 'devel/sdl/files/patch-an') diff --git a/devel/sdl/files/patch-an b/devel/sdl/files/patch-an new file mode 100644 index 000000000000..6cb0a945aaeb --- /dev/null +++ b/devel/sdl/files/patch-an @@ -0,0 +1,123 @@ +--- src/video/svga/SDL_svgaevents.c 2000/08/25 03:55:01 1.1 ++++ src/video/svga/SDL_svgaevents.c 2000/08/29 19:58:36 +@@ -42,8 +42,6 @@ + #include "SDL_svgaevents_c.h" + + /* The translation tables from a console scancode to a SDL keysym */ +-#define NUM_VGAKEYMAPS (1<sym = keymap[scancode]; + keysym->mod = KMOD_NONE; + +- /* If UNICODE is on, get the UNICODE value for the key */ + keysym->unicode = 0; + if ( SDL_TranslateUNICODE ) { +- int map; +- SDLMod modstate; +- +- modstate = SDL_GetModState(); +- map = 0; +- if ( modstate & KMOD_SHIFT ) { +- map |= (1<unicode=KVAL(vga_keymap[map][scancode]); +- } +- } else { +- keysym->unicode = KVAL(vga_keymap[map][scancode]); +- } ++ /* Populate the unicode field with the ASCII value */ ++ keysym->unicode = scancode; + } + return(keysym); + } -- cgit v1.2.3