diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-04-19 10:28:18 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-04-19 10:47:30 -0700 |
commit | f5ece0451b7de213ebe989ba90c95e4781b2c26b (patch) | |
tree | 0af45fa5ccfde3d1e235b7f6bec597b4dbc52583 /shell/cell.mu | |
parent | 5c5bca9df5508ebbd556718e0193654eb9f31380 (diff) | |
download | mu-f5ece0451b7de213ebe989ba90c95e4781b2c26b.tar.gz |
start cleaning up pixel graphics
Filling pixels isn't a rare corner case. I'm going to switch to a dense rather than sparse representation for pixels, but callers will have to explicitly request the additional memory.
Diffstat (limited to 'shell/cell.mu')
-rw-r--r-- | shell/cell.mu | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/cell.mu b/shell/cell.mu index 8804c686..8b9307c7 100644 --- a/shell/cell.mu +++ b/shell/cell.mu @@ -136,14 +136,14 @@ fn allocate-screen _out: (addr handle cell) { copy-to *type, 5/screen } -fn new-fake-screen _out: (addr handle cell), width: int, height: int { +fn new-fake-screen _out: (addr handle cell), width: int, height: int, pixel-graphics?: boolean { var out/eax: (addr handle cell) <- copy _out allocate-screen out var out-addr/eax: (addr cell) <- lookup *out var dest-ah/eax: (addr handle screen) <- get out-addr, screen-data allocate dest-ah var dest-addr/eax: (addr screen) <- lookup *dest-ah - initialize-screen dest-addr, width, height + initialize-screen dest-addr, width, height, pixel-graphics? } fn clear-screen-cell _self-ah: (addr handle cell) { |