[haiku-commits] r39136 - haiku/trunk/src/system/boot/platform/amiga_m68k

  • From: revol@xxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 25 Oct 2010 00:46:07 +0200 (CEST)

Author: mmu_man
Date: 2010-10-25 00:46:06 +0200 (Mon, 25 Oct 2010)
New Revision: 39136
Changeset: http://dev.haiku-os.org/changeset/39136

Modified:
   haiku/trunk/src/system/boot/platform/amiga_m68k/rom_calls.h
   haiku/trunk/src/system/boot/platform/amiga_m68k/video.cpp
Log:
Display flags and interlace in the mode menu items.


Modified: haiku/trunk/src/system/boot/platform/amiga_m68k/rom_calls.h
===================================================================
--- haiku/trunk/src/system/boot/platform/amiga_m68k/rom_calls.h 2010-10-24 
22:28:13 UTC (rev 39135)
+++ haiku/trunk/src/system/boot/platform/amiga_m68k/rom_calls.h 2010-10-24 
22:46:06 UTC (rev 39136)
@@ -1369,6 +1369,23 @@
 #define DTAG_MNTR      0x80002000
 #define DTAG_NAME      0x80003000
 
+#define DIPF_IS_LACE           0x00000001
+#define DIPF_IS_DUALFP         0x00000002
+#define DIPF_IS_PF2PRI         0x00000004
+#define DIPF_IS_HAM                    0x00000008
+#define DIPF_IS_ECS                    0x00000010
+#define DIPF_IS_AA                     0x00010000
+#define DIPF_IS_PAL                    0x00000020
+#define DIPF_IS_SPRITES                0x00000040
+#define DIPF_IS_GENLOCK                0x00000080
+#define DIPF_IS_WB                     0x00000100
+#define DIPF_IS_DRAGGABLE      0x00000200
+#define DIPF_IS_PANELLED       0x00000400
+#define DIPF_IS_BEAMSYNC       0x00000800
+#define DIPF_IS_EXTRAHALDBRITE 0x00001000
+//
+#define DIPF_IS_FOREIGN                0x80000000
+
 //     #pragma mark -
 
 

Modified: haiku/trunk/src/system/boot/platform/amiga_m68k/video.cpp
===================================================================
--- haiku/trunk/src/system/boot/platform/amiga_m68k/video.cpp   2010-10-24 
22:28:13 UTC (rev 39135)
+++ haiku/trunk/src/system/boot/platform/amiga_m68k/video.cpp   2010-10-24 
22:46:06 UTC (rev 39136)
@@ -104,11 +104,13 @@
                        dimension.Nominal.MaxY - dimension.Nominal.MinY + 1,
                        dimension.MaxDepth, info.PropertyFlags);
                */
-               char label[64];
-               sprintf(label, "%ux%u %u bit",
+               char label[128];
+               sprintf(label, "%ux%u %u bit %08lx%s%s",
                        dimension.Nominal.MaxX - dimension.Nominal.MinX + 1,
                        dimension.Nominal.MaxY - dimension.Nominal.MinY + 1,
-                       dimension.MaxDepth);
+                       dimension.MaxDepth, info.PropertyFlags,
+                       (info.PropertyFlags & DIPF_IS_LACE) ? "" : " i",
+                       (info.PropertyFlags & DIPF_IS_PAL) ? "" : " pal");
 
                menu->AddItem(item = new(nothrow) MenuItem(label));
                item->SetData((void *)modeID);


Other related posts:

  • » [haiku-commits] r39136 - haiku/trunk/src/system/boot/platform/amiga_m68k - revol