summaryrefslogtreecommitdiffstats
path: root/tools/ddcprobe
diff options
context:
space:
mode:
authorStew Benedict <stewb@mandriva.org>2005-02-28 21:37:57 +0000
committerStew Benedict <stewb@mandriva.org>2005-02-28 21:37:57 +0000
commit4f7a95bd2424046d0bdb068c2d62cd1edecc23f3 (patch)
tree445e5f4da3717c27f73d3320c86fa37e5546f04a /tools/ddcprobe
parentb58889f613cfb9fad71b34d7bc64efbdfbd53575 (diff)
downloaddrakx-4f7a95bd2424046d0bdb068c2d62cd1edecc23f3.tar
drakx-4f7a95bd2424046d0bdb068c2d62cd1edecc23f3.tar.gz
drakx-4f7a95bd2424046d0bdb068c2d62cd1edecc23f3.tar.bz2
drakx-4f7a95bd2424046d0bdb068c2d62cd1edecc23f3.tar.xz
drakx-4f7a95bd2424046d0bdb068c2d62cd1edecc23f3.zip
Fix ddcxinfos build on PPC that I broke with XBox mods.
Diffstat (limited to 'tools/ddcprobe')
-rw-r--r--tools/ddcprobe/ddcxinfos.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/ddcprobe/ddcxinfos.c b/tools/ddcprobe/ddcxinfos.c
index 44d9fdc48..930f4e1a3 100644
--- a/tools/ddcprobe/ddcxinfos.c
+++ b/tools/ddcprobe/ddcxinfos.c
@@ -45,17 +45,21 @@ int main(void)
pci_config_type = 1;
/* Get VBE information */
+#ifdef HAVE_VBE
if (box_is_xbox() == 1) {
if (get_fb_info(vbe_info) == 0)
return 1;
} else {
+#endif
/* Initialize Int10 */
if (InitInt10(pci_config_type)) return 1;
if (vbe_get_vbe_info(vbe_info) == 0) {
FreeInt10();
return 1;
}
+#ifdef HAVE_VBE
}
+#endif
printf("%dKB of video ram\n", vbe_info->memory_size / 1024);
/* List supported standard modes */
@@ -68,10 +72,10 @@ int main(void)
known_vesa_modes[i].x,
known_vesa_modes[i].y
);
-#endif
/* optimal on a TV, just return canned values */
if (box_is_xbox() == 1)
printf("%d %d %d\n", 16777216, 640, 480);
+#endif
printf("\n");
/* Get EDID information */