Mercurial > sdl-ios-xcode
view README.AmigaOS @ 1585:980d2a0dc2a3
Date: Tue, 4 Mar 2003 15:05:31 -0800
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]
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 22 Mar 2006 07:48:22 +0000 |
parents | 75a95f82bc1f |
children | 6d2e1961661a |
line wrap: on
line source
This is the porting of 1.2.0 version of SDL (the latest stable one) to AmigaOS/68k. All the bugs known of the past version have been corrected. And I've added all the new SDL features. This version of SDL needs Cybergraphx V3 (r69+) or CyberGraphX V4 and AHI v3+. Probably it works also with P96 or CGXAga, but it's untested. This version is available as linked library for SAS/C and GCC, only 68k this time, a powerup (ppcemu compatible) and a morphos version will be ready quite soon (i hope). Implemented: - 8/16/24/32bit video modes, both fullscreen and windowed. - Hardware surfaces. - CGX blitting acceleration. - CGX colorkey blitting acceleration. - AHI audio (8/16 bit, with any audio format), always uses unit 0 for now. - Thread support (maybe not 100% compatible with other implementations) - Semaphores - Window resizing and backdrop windows (NEW) - Joystick/Joypad support. To do: - CDRom audio playing support - OpenGL (A guy was working on it but I've lost his tracks :( ) The SAS/C library is distributed with debug info attached, to strip debug info simply add STRIPDEBUG argument to the linker. NOTE: SDL includes debug output using kprintf, to disable it add to your project a function like this: void kprintf(char *a,...) { } Otherwise you can redirect the debug to a console window with sushi, sashimi or similar tools (the default output is the internal serial port). For info, support, bugfix and other feel free to mail me: Gabriele Greco (gabriele.greco@aruba.it) You can find also a small SDL Amiga page at: http://ggreco.interfree.it/sdl.html