diff options
author | Kartik Agaram <vc@akkartik.com> | 2021-01-17 10:43:31 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2021-01-17 10:43:31 -0800 |
commit | 851959ccc6d728b9a6fa02ff42d170cbebd272bb (patch) | |
tree | 1fe4b43d9c4f22f9aca528f29b8b9e6726ce146b /baremetal/500text-screen.mu | |
parent | 9822a2429f549491b1c7dfa4035260bb6c44ff77 (diff) | |
download | mu-851959ccc6d728b9a6fa02ff42d170cbebd272bb.tar.gz |
7534
Don't assume screen dimensions.
Diffstat (limited to 'baremetal/500text-screen.mu')
-rw-r--r-- | baremetal/500text-screen.mu | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/baremetal/500text-screen.mu b/baremetal/500text-screen.mu index 5458398b..4fa7a00e 100644 --- a/baremetal/500text-screen.mu +++ b/baremetal/500text-screen.mu @@ -50,9 +50,7 @@ fn screen-size screen: (addr screen) -> _/eax: int, _/ecx: int { compare screen, 0 { break-if-!= - width <- copy 0x30 # 768/16 - height <- copy 0x80 # 1024/8 - return width, height + return 0x400, 0x300 # 1024x768 } # fake screen var screen-addr/esi: (addr screen) <- copy screen |