diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-06-01 21:33:32 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-06-01 21:33:32 +0100 |
commit | a21c6c696c96039a072d72d427b1692834d4765f (patch) | |
tree | 4c96b6e51920685e0085d5edec3afea7157e783d /src | |
parent | cbeff523d3c01471fcddfbf713b5d8d9e36dc1a9 (diff) | |
download | gold-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |