diff options
Diffstat (limited to 'tools/ddcprobe/ddcxinfos.c')
-rw-r--r-- | tools/ddcprobe/ddcxinfos.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/tools/ddcprobe/ddcxinfos.c b/tools/ddcprobe/ddcxinfos.c index e595d549c..44d9fdc48 100644 --- a/tools/ddcprobe/ddcxinfos.c +++ b/tools/ddcprobe/ddcxinfos.c @@ -9,6 +9,7 @@ #include <stdarg.h> #include "vbe.h" #include "vesamode.h" +#include "xbox.h" #ifdef HAVE_VBE #include "int10/vbios.h" @@ -43,13 +44,17 @@ int main(void) /* Determine PCI configuration type */ pci_config_type = 1; - /* Initialize Int10 */ - if (InitInt10(pci_config_type)) return 1; - /* Get VBE information */ - if (vbe_get_vbe_info(vbe_info) == 0) { - FreeInt10(); - return 1; + if (box_is_xbox() == 1) { + if (get_fb_info(vbe_info) == 0) + return 1; + } else { + /* Initialize Int10 */ + if (InitInt10(pci_config_type)) return 1; + if (vbe_get_vbe_info(vbe_info) == 0) { + FreeInt10(); + return 1; + } } printf("%dKB of video ram\n", vbe_info->memory_size / 1024); @@ -64,6 +69,9 @@ int main(void) 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); printf("\n"); /* Get EDID information */ |