aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-06-01 21:33:32 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-06-01 21:33:32 +0100
commita21c6c696c96039a072d72d427b1692834d4765f (patch)
tree4c96b6e51920685e0085d5edec3afea7157e783d /src
parentcbeff523d3c01471fcddfbf713b5d8d9e36dc1a9 (diff)
downloadgold-mine-run-a21c6c696c96039a072d72d427b1692834d4765f.tar.gz
gold-mine-run-a21c6c696c96039a072d72d427b1692834d4765f.zip
Use a better 8-bit to 6-bit conversion
Diffstat (limited to 'src')
-rw-r--r--src/vga.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vga.c b/src/vga.c
index b3ee0a2..a6524bd 100644
--- a/src/vga.c
+++ b/src/vga.c
@@ -28,5 +28,5 @@ void set_palette(const uint8_t *palette)
{
outportb(0x3c8, 0);
for (int i = 0; i < 768; i++)
- outportb(0x3c9, (palette[i] * 63) / 255);
+ outportb(0x3c9, palette[i] >> 2);
}