From e45efadaad2eaf0effb3d521d4c0e092cbdbc229 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Fri, 19 Aug 2011 12:08:57 +0000 Subject: [PATCH] Complete the SCREENINFO structure definition; expose a single version of the Setscreen() calls, since they are just the same with magic values and extra args anyway. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42639 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/boot/platform/atari_m68k/toscalls.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/system/boot/platform/atari_m68k/toscalls.h b/src/system/boot/platform/atari_m68k/toscalls.h index ca2d04ae9f..0ede8ff961 100644 --- a/src/system/boot/platform/atari_m68k/toscalls.h +++ b/src/system/boot/platform/atari_m68k/toscalls.h @@ -442,10 +442,17 @@ typedef struct screeninfo { int32 planeWrap; int32 scrFormat; int32 scrClut; - /* int32 redBits; - ... - */ + int32 greenBits; + int32 blueBits; + int32 alphaBits; + int32 genlockBits; + int32 unusedBits; + int32 bitFlags; + int32 maxmem; + int32 pagemem; + int32 max_x; + int32 max_y; } SCREENINFO; @@ -456,8 +463,7 @@ typedef struct screeninfo { #define Physbase() (void *)toscallV(XBIOS_TRAP, 2) #define Logbase() (void *)toscallV(XBIOS_TRAP, 3) #define Getrez() toscallV(XBIOS_TRAP, 4) -#define Setscreen(log, phys, mode) toscallPPWW(XBIOS_TRAP, 5, (void *)log, (void *)phys, (int16)mode, (int16)0) -#define SetscreenM(log, phys, command) toscallPPWW(XBIOS_TRAP, 5, (void *)log, (void *)phys, (int16)MI_MAGIC, (int16)command) +#define Setscreen(log, phys, mode, command) toscallPPWW(XBIOS_TRAP, 5, (void *)log, (void *)phys, (int16)mode, (int16)command) #define VsetScreen(log, phys, mode, modecode) toscallPPWW(XBIOS_TRAP, 5, (void *)log, (void *)phys, (int16)mode, (int16)modecode) #define Floprd(buf, dummy, dev, sect, track, side, count) toscallPLWWWWW(XBIOS_TRAP, 8, (void *)buf, (int32)dummy, (int16)dev, (int16)sect, (int16)track, (int16)side, (int16)count) //#define Mfpint() toscallV(XBIOS_TRAP, 13, )