Display flags and interlace in the mode menu items.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39136 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
b14f16077c
commit
ee0c130257
@ -1369,6 +1369,23 @@ struct NameInfo {
|
||||
#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 -
|
||||
|
||||
|
||||
|
@ -104,11 +104,13 @@ video_mode_menu()
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user