diff options
author | Kartik Agaram <vc@akkartik.com> | 2021-02-07 20:51:54 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2021-02-07 20:51:54 -0800 |
commit | 1d7aae96f0eafb43b791b4221c544267b852b9c1 (patch) | |
tree | 14d3d8ffc46dca9ee8c803eda146a18607345526 /baremetal/500text-screen.mu | |
parent | 8f34dfd1e09e9e33176bba8f05a2ec229cf3b56f (diff) | |
download | mu-1d7aae96f0eafb43b791b4221c544267b852b9c1.tar.gz |
7694 - baremetal: asserting bg color in tests
Diffstat (limited to 'baremetal/500text-screen.mu')
-rw-r--r-- | baremetal/500text-screen.mu | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/baremetal/500text-screen.mu b/baremetal/500text-screen.mu index 3cdc8d51..463b8c20 100644 --- a/baremetal/500text-screen.mu +++ b/baremetal/500text-screen.mu @@ -84,8 +84,11 @@ fn draw-grapheme screen: (addr screen), g: grapheme, x: int, y: int, color: int, var g2/edx: grapheme <- copy g copy-to *dest-grapheme, g2 var dest-color/eax: (addr int) <- get dest-cell, color - var color2/edx: grapheme <- copy color - copy-to *dest-color, color2 + var src-color/edx: int <- copy color + copy-to *dest-color, src-color + dest-color <- get dest-cell, background-color + src-color <- copy background-color + copy-to *dest-color, src-color } fn screen-cell-index screen-on-stack: (addr screen), x: int, y: int -> _/ecx: int { |