diff options
Diffstat (limited to 'video.c')
| -rw-r--r-- | video.c | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -5,6 +5,8 @@ */ #include <graph.h> +#include <wingraph.h> +#include <alloc.h> #define VIDEO_ROWMODE 0x01 @@ -28,11 +30,27 @@ char video_busy; // Always 0 char video_cur_row; char video_cur_col; +WINDOW *screen_window; + void video_write(char); char video_read(void); void *video_compute_address(void); int video_compute_shift(void); +void display_setup(void) +{ + screen_window = HeapAllocPtr(sizeof(WINDOW)); + WinOpen(screen_window, MakeWinRect(10, 10, 106, 74), WF_SAVE_SCR | WF_TTY | WF_ROUNDEDBORDER | WF_TITLE, "TI-83+ Emulator"); + WinActivate(screen_window); + return; +} + +void display_teardown(void) +{ + WinClose(screen_window); + HeapFreePtr(screen_window); +} + void video_write(char data) { int shift = video_compute_shift(); |
