diff options
| author | Duncan Smith | 2010-09-10 12:47:20 -0700 |
|---|---|---|
| committer | Duncan Smith | 2010-09-10 12:47:20 -0700 |
| commit | 9720a70bb6ca148cd7e333049a74cb86792ee79b (patch) | |
| tree | 1318faa95afa7f690309906c12275659a400316f /video.c | |
| parent | 1af22b5bca4179bdac09b2d3c2cff07bc92d5d8f (diff) | |
Added stubs for putting the emulated screen into a TIOS-drawn window.
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(); |
