README.AmigaOS
author Patrice Mandin <patmandin@gmail.com>
Thu, 19 Jan 2006 21:28:52 +0000
changeset 1257 448a9a64537b
parent 21 75a95f82bc1f
child 3888 6d2e1961661a
permissions -rw-r--r--
[PATCH] SDL_GetVideoMode() does not find best mode, part 2

Following commit 1.51, I come accross a problem when SDL must choose between
several video modes that could suit the one asked.

If I ask 320x240 with this list:
768x480 768x240 640x400 640x200 384x480 384x240 320x400 320x200

The smallest selectables modes are 384x240 and 320x400. And SDL choose the later
in this list, but 384x240 is more suitable. So I added a check to compare
the pixel count (surface) of modes, and select the one which has the smallest
pixel count.

In my example, 384x240 has 92160 pixels, and 320x400 has 128000 pixels. So now
SDL will choose 384x240 for the asked 320x240 mode.
slouken@21
     1
This is the porting of 1.2.0 version of SDL (the latest stable one)
slouken@21
     2
to AmigaOS/68k.
slouken@21
     3
slouken@21
     4
All the bugs known of the past version have been corrected. And I've
slouken@21
     5
added all the new SDL features.
slouken@21
     6
slouken@21
     7
This version of SDL needs Cybergraphx V3 (r69+) or CyberGraphX V4
slouken@21
     8
and AHI v3+. Probably it works also with P96 or CGXAga, but it's 
slouken@21
     9
untested.
slouken@21
    10
slouken@21
    11
This version is available as linked library for SAS/C and GCC, only 68k this 
slouken@21
    12
time, a powerup (ppcemu compatible) and a morphos version will be ready quite 
slouken@21
    13
soon (i hope).
slouken@21
    14
slouken@21
    15
Implemented:
slouken@21
    16
slouken@21
    17
- 8/16/24/32bit video modes, both fullscreen and windowed.
slouken@21
    18
- Hardware surfaces.
slouken@21
    19
- CGX blitting acceleration.
slouken@21
    20
- CGX colorkey blitting acceleration.
slouken@21
    21
- AHI audio (8/16 bit, with any audio format), always uses unit 0 for now.
slouken@21
    22
- Thread support (maybe not 100% compatible with other implementations)
slouken@21
    23
- Semaphores 
slouken@21
    24
- Window resizing and backdrop windows (NEW)
slouken@21
    25
- Joystick/Joypad support.
slouken@21
    26
slouken@21
    27
To do:
slouken@21
    28
slouken@21
    29
- CDRom audio playing support
slouken@21
    30
- OpenGL (A guy was working on it but I've lost his tracks :( )
slouken@21
    31
slouken@21
    32
The SAS/C library is distributed with debug info attached, to strip debug info 
slouken@21
    33
simply add STRIPDEBUG argument to the linker.
slouken@21
    34
slouken@21
    35
NOTE: SDL includes debug output using kprintf, to disable it add to your 
slouken@21
    36
project a function like this:
slouken@21
    37
slouken@21
    38
void kprintf(char *a,...)
slouken@21
    39
{
slouken@21
    40
}
slouken@21
    41
slouken@21
    42
Otherwise you can redirect the debug to a console window with sushi, sashimi or
slouken@21
    43
similar tools (the default output is the internal serial port). 
slouken@21
    44
slouken@21
    45
For info, support, bugfix and other feel free to mail me:
slouken@21
    46
slouken@21
    47
Gabriele Greco (gabriele.greco@aruba.it)
slouken@21
    48
slouken@21
    49
You can find also a small SDL Amiga page at:
slouken@21
    50
http://ggreco.interfree.it/sdl.html