source:
scripts/untested/blfs-patches/SDL-1.2.8-gentoo-fixes.patch@
def3913
Last change on this file since def3913 was fd5b1fe, checked in by , 19 years ago | |
---|---|
|
|
File size: 3.9 KB |
-
include/SDL_endian.h
Submitted By: Ryan Oliver <ryan.oliver@pha.com.au> Date: 2005-07-31 Initial Package Version: 1.2.8 Upstream Status: Unknown Origin: Gentoo Description: Combined gentoo patches for SDL-1.2.8 diff -uNr SDL-1.2.8/include/SDL_endian.h SDL-1.2.8-gentoo-fixes/include/SDL_endian.h
old new 68 68 #elif defined(__GNUC__) && defined(__x86_64__) 69 69 static __inline__ Uint16 SDL_Swap16(Uint16 x) 70 70 { 71 __asm__("xchgb %b0,%h0" : "= q" (x) : "0" (x));71 __asm__("xchgb %b0,%h0" : "=Q" (x) : "0" (x)); 72 72 return x; 73 73 } 74 74 #elif defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__)) -
src/events/SDL_keyboard.c
diff -uNr SDL-1.2.8/src/events/SDL_keyboard.c SDL-1.2.8-gentoo-fixes/src/events/SDL_keyboard.c
old new 491 491 /* 492 492 * jk 991215 - Added 493 493 */ 494 if ( SDL_KeyRepeat.timestamp ) { 494 if ( SDL_KeyRepeat.timestamp && 495 SDL_KeyRepeat.evt.key.keysym.sym == keysym->sym ) { 495 496 SDL_KeyRepeat.timestamp = 0; 496 497 } 497 498 break; -
src/video/directfb/SDL_DirectFB_video.c
diff -uNr SDL-1.2.8/src/video/directfb/SDL_DirectFB_video.c SDL-1.2.8-gentoo-fixes/src/video/directfb/SDL_DirectFB_video.c
old new 468 468 469 469 if (HIDDEN->enable_mga_crtc2) 470 470 { 471 DFBDisplayLayerConfig dlc; 472 DFBDisplayLayerConfigFlags failed; 473 471 474 ret = dfb->GetDisplayLayer (dfb, 2, &HIDDEN->c2layer); 472 475 if (ret) 473 476 { … … 492 495 HIDDEN->c2layer->SetOpacity(HIDDEN->c2layer, 0x0); 493 496 494 497 /* Init the surface here as it got a fixed size */ 495 DFBDisplayLayerConfig dlc;496 DFBDisplayLayerConfigFlags failed;497 498 498 499 dlc.flags = DLCONF_PIXELFORMAT | DLCONF_BUFFERMODE | DLCONF_OPTIONS; 499 500 dlc.buffermode = DLBM_BACKVIDEO; -
src/video/fbcon/SDL_fbevents.c
diff -uNr SDL-1.2.8/src/video/fbcon/SDL_fbevents.c SDL-1.2.8-gentoo-fixes/src/video/fbcon/SDL_fbevents.c
old new 835 835 static void switch_vt(_THIS, unsigned short which) 836 836 { 837 837 struct vt_stat vtstate; 838 unsigned short current;838 unsigned short v_active; 839 839 SDL_Surface *screen; 840 840 __u16 saved_pal[3*256]; 841 841 Uint32 screen_arealen; … … 846 846 (which == vtstate.v_active) ) { 847 847 return; 848 848 } 849 current= vtstate.v_active;849 v_active = vtstate.v_active; 850 850 851 851 /* Save the contents of the screen, and go to text mode */ 852 852 SDL_mutexP(hw_lock); … … 864 864 if ( ioctl(keyboard_fd, VT_ACTIVATE, which) == 0 ) { 865 865 /* Wait for our console to be activated again */ 866 866 ioctl(keyboard_fd, VT_WAITACTIVE, which); 867 while ( ioctl(keyboard_fd, VT_WAITACTIVE, current) < 0 ) {867 while ( ioctl(keyboard_fd, VT_WAITACTIVE, v_active) < 0 ) { 868 868 if ( (errno != EINTR) && (errno != EAGAIN) ) { 869 869 /* Unknown VT error - cancel this */ 870 870 break; -
src/video/x11/SDL_x11modes.c
diff -uNr SDL-1.2.8/src/video/x11/SDL_x11modes.c SDL-1.2.8-gentoo-fixes/src/video/x11/SDL_x11modes.c
old new 324 324 fclose(metro_fp); 325 325 } 326 326 } 327 #if defined(__alpha__) || defined(__sparc64__) || defined(__powerpc__)328 /* The alpha, sparc64 and PPC XFree86 servers are also buggy */329 buggy_X11 = 1;330 #endif331 327 /* Enumerate the available fullscreen modes */ 332 328 if ( ! buggy_X11 ) { 333 329 if ( SDL_NAME(XF86VidModeQueryExtension)(SDL_Display, &vm_event, &vm_error) &&
Note:
See TracBrowser
for help on using the repository browser.