| Previous | 15994 Revisions | Next |
| r6541 Saturday 5th December, 2009 at 02:46:43 UTC by Justin Kerk |
|---|
| [GP32] Fix rotation/aspect ratio |
| [src/mess] | mess.c mess.h mess.mak |
| [src/mess/drivers] | gp32.c |
| [src/mess/layout] | lcd_rot.lay* |
| r6540 | r6541 | |
|---|---|---|
| 16 | 16 | #include "messopts.h" |
| 17 | 17 | |
| 18 | 18 | #include "lcd.lh" |
| 19 | #include "lcd_rot.lh" | |
| 19 | 20 | |
| 20 | 21 | /* Globals */ |
| 21 | 22 | const char mess_disclaimer[] = |
| r6540 | r6541 | |
|---|---|---|
| 42 | 42 | |
| 43 | 43 | /* mess specific layout files */ |
| 44 | 44 | extern const char layout_lcd[]; /* generic 1:1 lcd screen layout */ |
| 45 | extern const char layout_lcd_rot[]; /* same, for use with ROT90 or ROT270 */ | |
| 45 | 46 | |
| 46 | 47 | |
| 47 | 48 | /***************************************************************************/ |
| r0 | r6541 | |
|---|---|---|
| 1 | <?xml version="1.0"?> | |
| 2 | <mamelayout version="2"> | |
| 3 | <view name="LCD with square pixels"> | |
| 4 | <screen index="0"> | |
| 5 | <bounds left="0" top="0" right="~scr0height~" bottom="~scr0width~" /> | |
| 6 | </screen> | |
| 7 | </view> | |
| 8 | </mamelayout> |
| r6540 | r6541 | |
|---|---|---|
| 1571 | 1571 | #------------------------------------------------- |
| 1572 | 1572 | |
| 1573 | 1573 | $(MESSOBJ)/mess.o: $(MESS_LAYOUT)/lcd.lh |
| 1574 | $(MESSOBJ)/mess.o: $(MESS_LAYOUT)/lcd_rot.lh | |
| 1574 | 1575 | |
| 1575 | 1576 | $(MESS_DRIVERS)/4004clk.o: $(MESS_LAYOUT)/4004clk.lh |
| 1576 | 1577 | $(MESS_DRIVERS)/acrnsys1.o: $(MESS_LAYOUT)/acrnsys1.lh |
| r6540 | r6541 | |
|---|---|---|
| 804 | 804 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 805 | 805 | MDRV_SCREEN_SIZE(240, 320) |
| 806 | 806 | MDRV_SCREEN_VISIBLE_AREA(0, 239, 0, 319) |
| 807 | MDRV_DEFAULT_LAYOUT(layout_lcd) | |
| 807 | /* 320x240 is 4:3 but ROT270 causes an aspect ratio of 3:4 by default */ | |
| 808 | MDRV_DEFAULT_LAYOUT(layout_lcd_rot) | |
| 808 | 809 | |
| 809 | 810 | MDRV_VIDEO_UPDATE(gp32) |
| 810 | 811 | |
| r6540 | r6541 | |
| 826 | 827 | ROMX_LOAD( "gp32156k.bin", 0x000000, 0x080000, CRC(667fb1c8) SHA1(d179ab8e96411272b6a1d683e59da752067f9da8), ROM_BIOS(3) ) |
| 827 | 828 | ROM_END |
| 828 | 829 | |
| 829 | CONS(2001, gp32, 0, 0, gp32, gp32, 0, 0, "Game Park", "GP32", GAME_NOT_WORKING|GAME_NO_SOUND) | |
| 830 | CONS(2001, gp32, 0, 0, gp32, gp32, 0, 0, "Game Park", "GP32", ROT270|GAME_NOT_WORKING|GAME_NO_SOUND) |
| Previous | 15994 Revisions | Next |