###use_dfb### #!/bin/sh export SDL_VIDEODRIVER=directfb export SDL_DIRECTFB_MGA_CRTC2=1 export SDL_DIRECTFB_MGA_STRETCH=1 export SDL_DIRECTFB_MGA_OVERSCAN=1 $@ ###use_dfb###
you would run it like this,
use_dfb xmame.SDL -autodouble -effect 7 -vidmode_w 640 -vidmode_h 480 -doublebuf -jt 7 game.zip
Magnus Einarsson wrote:
I would like to have the patches for xmame and zsnes. Did you have to do anything special to make xmame.sdl run using directfb?
Thanks Magnus Justin T Wetherell wrote:
After ALOT of work and ringing every message board possible, I got a couple patches to get all my emulators to work with Matrox G450 Tv-out. anyone need help and/or patches send me an email.
These are the emulators I get working, xmame.SDL (Arcade emulator).... xmame-0.81.1 w/ patch stella.sdl (Atari emulator)... stella-1.2 fceu (NES emulator)... fceu-0.98.5 sms_sdl (Sega Master System emulator)... sms_sdl-0.9.4a-r7.1 zsnes (Super Nintendo emulator)... zsnes-1.36 w/ patch dgen (Sega Genesis emulator)... dgen-sdl-1.23
I have a special need, the sms_sdl needs a special setup to run with a joystick. The command line looks like this
"sms_sdl rom.name [options]"
freevo puts the option between the command and the rom.name, anyway to change that in his case?
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Freevo-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-users
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Freevo-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-users
diff -u -r xmame-0.81.1/src/unix/video-drivers/SDL.c
xmame.patched/src/unix/video-drivers/SDL.c
--- xmame-0.81.1/src/unix/video-drivers/SDL.c 2004-03-07 01:01:12.000000000 +0100
+++ xmame.patched/src/unix/video-drivers/SDL.c 2004-04-28 09:21:46.000000000 +0200
@@ -494,7 +494,7 @@
if (doublebuf == 1)
SDL_Flip(Surface);
- else if(hardware==0)
+ else
SDL_UpdateRects(Surface,1, &drect);
}
#else /* DIRECT_HERMES */
diff -u -r zsnes-1.36/src/linux/sw_draw.c zsnes/src/linux/sw_draw.c
--- zsnes-1.36/src/linux/sw_draw.c 2002-07-07 04:03:16.000000000 +0200
+++ zsnes/src/linux/sw_draw.c 2003-09-28 19:15:03.000000000 +0200
@@ -117,7 +122,7 @@
SurfBufD = (DWORD) surface->pixels;
LockSurface();
- ClearWin16();
+// ClearWin16();
UnlockSurface();
}
diff -u -r zsnes-1.36/src/video/sw_draw.asm zsnes/src/video/sw_draw.asm
--- zsnes-1.36/src/video/sw_draw.asm 2002-05-27 22:03:42.000000000 +0200
+++ zsnes/src/video/sw_draw.asm 2003-09-28 19:12:28.000000000 +0200
@@ -35,13 +35,13 @@
.Blank2:
mov ecx, [SurfaceX]
rep stosw
- mov edx, [SurfaceX]
- add edi, [pitch]
- shl edx,1
- add ebx,1
- sub edi,edx
- cmp ebx, [SurfaceY]
- jne .Blank2
+; mov edx, [SurfaceX]
+; add edi, [pitch]
+; shl edx,1
+; add ebx,1
+; sub edi,edx
+; cmp ebx, [SurfaceY]
+; jne .Blank2
popad
ret
