• Sam Lantinga's avatar
    Date: Tue, 4 Mar 2003 15:05:31 -0800 · 2f58ef08
    Sam Lantinga authored
    From: "Jim"
    Subject: [SDL] Frame Buffer patches...
    
     Okay I'm new at patch generation - so please tell me if there's a better way
     I could have done this.
    
     Attached are two patch files generated with 'cvs diff -u'
    
     SDL-fb-open-lock.patch applies to SDL_fbvideo.c
        Modifies the open loop to check /dev/fb/0 found on devfs...
    
        Modifies the lock code to return failure if the current virtual terminal
     is not the one opened for frame buffer writing...
       Lock would hang forever if switched away (ctrl-alt-F1) ...
    
     SDL-fb-mousedrv-screensave.patch applies to SDL_fbevents.c
        Switches default mouse mode based on SDL_MOUSEDRV - currently only
     accepts PS2 - otherwise default is MS Mouse.
    
        When the screen is switched - exisiting code (wrapped in ifdef
     SAVE_SCREEN_COTENTS) would save the wrong bit of the screen....
         ( I run frame buffer 1600x1200, the size I requested was 800x600 - the
     save would save the top 800 lines (non biased) and restore them... Adding
     screen->offset fixed that )
    
        However, if that option is not set, then a call to SDL_UpdateRect (full
     screen) is made. (which may have had it's contents changed since the screen
     is not entirely locked because of lock-failure patch)
    
     Jim
    
    [patches slightly tweaked for SDL 1.2.10]
    
    --HG--
    extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401590
    2f58ef08
Name
Last commit
Last update
..
Xext Loading commit data...
aalib Loading commit data...
ataricommon Loading commit data...
bwindow Loading commit data...
cybergfx Loading commit data...
dc Loading commit data...
dga Loading commit data...
directfb Loading commit data...
dummy Loading commit data...
epoc Loading commit data...
fbcon Loading commit data...
gapi Loading commit data...
gem Loading commit data...
ggi Loading commit data...
ipod Loading commit data...
maccommon Loading commit data...
macdsp Loading commit data...
macrom Loading commit data...
nanox Loading commit data...
os2fslib Loading commit data...
photon Loading commit data...
picogui Loading commit data...
ps2gs Loading commit data...
qtopia Loading commit data...
quartz Loading commit data...
riscos Loading commit data...
svga Loading commit data...
vgl Loading commit data...
wincommon Loading commit data...
windib Loading commit data...
windx5 Loading commit data...
wscons Loading commit data...
x11 Loading commit data...
xbios Loading commit data...
.cvsignore Loading commit data...
SDL_RLEaccel.c Loading commit data...
SDL_RLEaccel_c.h Loading commit data...
SDL_blit.c Loading commit data...
SDL_blit.h Loading commit data...
SDL_blit_0.c Loading commit data...
SDL_blit_1.c Loading commit data...
SDL_blit_A.c Loading commit data...
SDL_blit_N.c Loading commit data...
SDL_bmp.c Loading commit data...
SDL_cursor.c Loading commit data...
SDL_cursor_c.h Loading commit data...
SDL_gamma.c Loading commit data...
SDL_glfuncs.h Loading commit data...
SDL_leaks.h Loading commit data...
SDL_pixels.c Loading commit data...
SDL_pixels_c.h Loading commit data...
SDL_stretch.c Loading commit data...
SDL_stretch_c.h Loading commit data...
SDL_surface.c Loading commit data...
SDL_sysvideo.h Loading commit data...
SDL_video.c Loading commit data...
SDL_yuv.c Loading commit data...
SDL_yuv_mmx.c Loading commit data...
SDL_yuv_sw.c Loading commit data...
SDL_yuv_sw_c.h Loading commit data...
SDL_yuvfuncs.h Loading commit data...
blank_cursor.h Loading commit data...
default_cursor.h Loading commit data...
e_log.h Loading commit data...
e_pow.h Loading commit data...
e_sqrt.h Loading commit data...
math_private.h Loading commit data...
mmx.h Loading commit data...