From 63c7d5c4e0437aad068d31f4b480c377d5998948 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 29 Jul 2021 07:55:54 -0700 Subject: downsampling photos makes the dithering seem worse We support 128px, so let's use the whole 128px. --- shell/global.mu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell/global.mu b/shell/global.mu index 358908f8..80bd8c40 100644 --- a/shell/global.mu +++ b/shell/global.mu @@ -164,7 +164,7 @@ fn render-globals screen: (addr screen), _self: (addr global-table), show-cursor compare render-image?, 0/false break-if-= render-image-definition screen, curr, 0/x y1 - add-to y1, 6 # 1 line for definition, 4 lines (64px) for image, 1 line padding + add-to y1, 0xa # 1 line for definition, 8 lines (128px) for image, 1 line padding break $render-globals:iter } var curr-input-ah/eax: (addr handle gap-buffer) <- get curr, input @@ -643,5 +643,5 @@ fn render-image-definition screen: (addr screen), _self: (addr global), x: int, var img-cell/eax: (addr cell) <- lookup *img-cell-ah var img-ah/eax: (addr handle image) <- get img-cell, image-data var img/eax: (addr image) <- lookup *img-ah - render-image screen, img, x y, 0x40/w 0x40/h + render-image screen, img, x y, 0x80/w 0x80/h } -- cgit 1.4.1-2-gfad0