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*

src/mess/mess.c
r6540r6541
1616#include "messopts.h"
1717
1818#include "lcd.lh"
19#include "lcd_rot.lh"
1920
2021/* Globals */
2122const char mess_disclaimer[] =
src/mess/mess.h
r6540r6541
4242
4343/* mess specific layout files */
4444extern const char layout_lcd[];   /* generic 1:1 lcd screen layout */
45extern const char layout_lcd_rot[];   /* same, for use with ROT90 or ROT270 */
4546
4647
4748/***************************************************************************/
src/mess/layout/lcd_rot.lay
r0r6541
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>
src/mess/mess.mak
r6540r6541
15711571#-------------------------------------------------
15721572
15731573$(MESSOBJ)/mess.o:   $(MESS_LAYOUT)/lcd.lh
1574$(MESSOBJ)/mess.o:   $(MESS_LAYOUT)/lcd_rot.lh
15741575
15751576$(MESS_DRIVERS)/4004clk.o:   $(MESS_LAYOUT)/4004clk.lh
15761577$(MESS_DRIVERS)/acrnsys1.o:   $(MESS_LAYOUT)/acrnsys1.lh
src/mess/drivers/gp32.c
r6540r6541
804804   MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
805805   MDRV_SCREEN_SIZE(240, 320)
806806   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)
808809
809810   MDRV_VIDEO_UPDATE(gp32)
810811
r6540r6541
826827   ROMX_LOAD( "gp32156k.bin", 0x000000, 0x080000, CRC(667fb1c8) SHA1(d179ab8e96411272b6a1d683e59da752067f9da8), ROM_BIOS(3) )
827828ROM_END
828829
829CONS(2001, gp32, 0, 0, gp32, gp32, 0, 0, "Game Park", "GP32", GAME_NOT_WORKING|GAME_NO_SOUND)
830CONS(2001, gp32, 0, 0, gp32, gp32, 0, 0, "Game Park", "GP32", ROT270|GAME_NOT_WORKING|GAME_NO_SOUND)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team