source: scripts_home/scripts/untested/blfs-patches/SDL-1.2.8-gentoo-fixes.patch@ 1c9c5c3

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 1c9c5c3 was 1c9c5c3, checked in by Jim Gifford <clfs@…>, 19 years ago

r624@server (orig r622): jim | 2005-10-31 12:40:28 -0800
Rearranging Archive

  • Property mode set to 100644
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  
    6868#elif defined(__GNUC__) && defined(__x86_64__)
    6969static __inline__ Uint16 SDL_Swap16(Uint16 x)
    7070{
    71         __asm__("xchgb %b0,%h0" : "=q" (x) :  "0" (x));
     71        __asm__("xchgb %b0,%h0" : "=Q" (x) :  "0" (x));
    7272        return x;
    7373}
    7474#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  
    491491                        /*
    492492                         * jk 991215 - Added
    493493                         */
    494                         if ( SDL_KeyRepeat.timestamp ) {
     494                        if ( SDL_KeyRepeat.timestamp &&
     495                             SDL_KeyRepeat.evt.key.keysym.sym == keysym->sym ) {
    495496                                SDL_KeyRepeat.timestamp = 0;
    496497                        }
    497498                        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  
    468468 
    469469  if (HIDDEN->enable_mga_crtc2)
    470470    {
     471      DFBDisplayLayerConfig      dlc;
     472      DFBDisplayLayerConfigFlags failed;
     473
    471474      ret = dfb->GetDisplayLayer (dfb, 2, &HIDDEN->c2layer);
    472475      if (ret)
    473476        {
     
    492495      HIDDEN->c2layer->SetOpacity(HIDDEN->c2layer, 0x0);
    493496
    494497      /* Init the surface here as it got a fixed size */
    495       DFBDisplayLayerConfig      dlc;
    496       DFBDisplayLayerConfigFlags failed;
    497498   
    498499      dlc.flags      = DLCONF_PIXELFORMAT | DLCONF_BUFFERMODE | DLCONF_OPTIONS;
    499500      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  
    835835static void switch_vt(_THIS, unsigned short which)
    836836{
    837837        struct vt_stat vtstate;
    838         unsigned short current;
     838        unsigned short v_active;
    839839        SDL_Surface *screen;
    840840        __u16 saved_pal[3*256];
    841841        Uint32 screen_arealen;
     
    846846             (which == vtstate.v_active) ) {
    847847                return;
    848848        }
    849         current = vtstate.v_active;
     849        v_active = vtstate.v_active;
    850850
    851851        /* Save the contents of the screen, and go to text mode */
    852852        SDL_mutexP(hw_lock);
     
    864864        if ( ioctl(keyboard_fd, VT_ACTIVATE, which) == 0 ) {
    865865                /* Wait for our console to be activated again */
    866866                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 ) {
    868868                        if ( (errno != EINTR) && (errno != EAGAIN) ) {
    869869                                /* Unknown VT error - cancel this */
    870870                                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  
    324324            fclose(metro_fp);
    325325        }
    326326    }
    327 #if defined(__alpha__) || defined(__sparc64__) || defined(__powerpc__)
    328     /* The alpha, sparc64 and PPC XFree86 servers are also buggy */
    329     buggy_X11 = 1;
    330 #endif
    331327    /* Enumerate the available fullscreen modes */
    332328    if ( ! buggy_X11 ) {
    333329        if ( SDL_NAME(XF86VidModeQueryExtension)(SDL_Display, &vm_event, &vm_error) &&
Note: See TracBrowser for help on using the repository browser.