From 68f13ff25e7e8b97f3635d9c952e795bcf926e87 Mon Sep 17 00:00:00 2001 From: dimok789 Date: Wed, 2 Mar 2016 19:52:52 +0100 Subject: [PATCH] fixed bug in defines of GX2 --- src/Application.cpp | 16 ---------------- src/dynamic_libs/gx2_types.h | 8 ++++---- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/src/Application.cpp b/src/Application.cpp index e448028..c0d199c 100644 --- a/src/Application.cpp +++ b/src/Application.cpp @@ -197,20 +197,4 @@ void Application::executeThread(void) delete mainWindow; delete fontSystem; delete video; - - //!------------------------------------------------------------------------------------------------------------ - //! TODO: This is ugly and I don't really like it but I didn't find a better way for this to work. - //! It seems its necessary. to make one frame with max resolution to fix console application display ratio. - //!------------------------------------------------------------------------------------------------------------ - video = new CVideo(GX2_TV_SCAN_MODE_1080P, GX2_DRC_SINGLE); - video->prepareDrcRendering(); - video->drcDrawDone(); - video->prepareTvRendering(); - video->tvDrawDone(); - video->tvEnable(true); - video->drcEnable(true); - video->waitForVSync(); - video->tvEnable(false); - video->drcEnable(false); - delete video; } diff --git a/src/dynamic_libs/gx2_types.h b/src/dynamic_libs/gx2_types.h index 8f28bd6..e292318 100644 --- a/src/dynamic_libs/gx2_types.h +++ b/src/dynamic_libs/gx2_types.h @@ -445,10 +445,10 @@ extern "C" { //!----------------------------------------------------------------------------------------------------------------------- //! GX2 TV render modes //!----------------------------------------------------------------------------------------------------------------------- -#define GX2_TV_RENDER_480_NARROW 0x00000000 -#define GX2_TV_RENDER_480_WIDE 0x00000001 -#define GX2_TV_RENDER_720 0x00000002 -#define GX2_TV_RENDER_1080 0x00000004 +#define GX2_TV_RENDER_480_NARROW 0x00000001 +#define GX2_TV_RENDER_480_WIDE 0x00000002 +#define GX2_TV_RENDER_720 0x00000003 +#define GX2_TV_RENDER_1080 0x00000005 //!----------------------------------------------------------------------------------------------------------------------- //! GX2 DRC render modes