From 5c949f38e4fff15002f8ac5b5f63bc02c849055d Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 9 Dec 2014 17:18:45 +0100 Subject: Assume PC_BUILD --- video.c | 53 ----------------------------------------------------- 1 file changed, 53 deletions(-) (limited to 'video.c') diff --git a/video.c b/video.c index c620a2e..da971af 100644 --- a/video.c +++ b/video.c @@ -3677,8 +3677,6 @@ void blit_to_screen(u16 *src, u32 w, u32 h, u32 dest_x, u32 dest_y) u32 debug_cursor_x = 0; u32 debug_cursor_y = 0; -#ifdef STDIO_DEBUG - void debug_screen_clear() { } @@ -3709,57 +3707,6 @@ void debug_screen_newline(u32 count) printf("\n"); } - -#else - -void debug_screen_clear() -{ - debug_cursor_x = 0; - debug_cursor_y = 0; - clear_screen(0x0000); -} - -void debug_screen_start() -{ - video_resolution_large(); - debug_screen_clear(); -} - -void debug_screen_end() -{ - video_resolution_small(); -} - -void debug_screen_update() -{ - flip_screen(); -} - -void debug_screen_printf(const char *format, ...) -{ - char str_buffer[512]; - u32 str_buffer_length; - va_list ap; - - va_start(ap, format); - str_buffer_length = vsnprintf(str_buffer, 512, format, ap); - va_end(ap); - - printf("printing debug string %s at %d %d\n", str_buffer, - debug_cursor_x, debug_cursor_y); - - print_string(str_buffer, 0xFFFF, 0x0000, debug_cursor_x, debug_cursor_y); - debug_cursor_x += FONT_WIDTH * str_buffer_length; -} - -void debug_screen_newline(u32 count) -{ - debug_cursor_x = 0; - debug_cursor_y += FONT_HEIGHT * count; -} - -#endif - void debug_screen_printl(const char *format, ...) { va_list ap; -- cgit v1.2.3