Skip to content

Commit fa11b0d

Browse files
committed
Remove Video res logic.
1 parent d1120ba commit fa11b0d

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

libogc/exception.c

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -274,23 +274,15 @@ static void waitForReload(void)
274274
//just implement core for unrecoverable exceptions.
275275
void c_default_exceptionhandler(frame_context *pCtx)
276276
{
277-
// Default values are for 576i
278-
u16 console_height = 680;
279-
u16 console_width = 574;
280-
u8 Yoffset = 48;
281-
282-
if (SYS_GetEuRGB60() > 0 || ((SYS_GetProgressiveScan() > 0) && VIDEO_HaveComponentCable())) {
283-
// Changes to 480i/p values
284-
console_height = 640;
285-
console_width = 480;
286-
Yoffset = 32;
287-
}
277+
const u16 console_height = 680;
278+
const u16 console_width = 574;
279+
288280
lookup_xfb = VIDEO_GetNextFramebuffer();
289281
VIDEO_WaitVSync();
290282
GX_AbortFrame();
291283
VIDEO_SetFramebuffer(exception_xfb);
292284
__VIClearFramebuffer(exception_xfb, console_height * console_width * VI_DISPLAY_PIX_SZ, COLOR_BLACK);
293-
__console_init(exception_xfb, 16, Yoffset, console_height-16, console_width-Yoffset, 1280);
285+
__console_init(exception_xfb, 16, 32, console_height-16, console_width-32, 1280);
294286
CON_EnableGecko(1, true);
295287

296288
kprintf("\tException (%s) occurred!\n", exception_name[pCtx->EXCPT_Number]);

0 commit comments

Comments
 (0)