summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/voodoo.h
diff options
context:
space:
mode:
author Ted Green <tedgreen99@protonmail.com>2017-10-01 15:09:02 -0600
committer Ted Green <tedgreen99@protonmail.com>2017-10-01 15:39:53 -0600
commit7d17b6a56984b8ab83b89d30b3fc3129f448294e (patch)
tree38eda817457e0c7c2bcfd88107f1ef3c824c958b /src/devices/video/voodoo.h
parent602c57e10d8c08d1d659c4edf23873dd020cd897 (diff)
voodoo: Use table lookup for RGB565 conversion. (nw)
Diffstat (limited to 'src/devices/video/voodoo.h')
-rw-r--r--src/devices/video/voodoo.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/video/voodoo.h b/src/devices/video/voodoo.h
index 0856d9640f6..68afe368c22 100644
--- a/src/devices/video/voodoo.h
+++ b/src/devices/video/voodoo.h
@@ -1644,7 +1644,7 @@ protected:
rgb_t int8[256]; /* intensity 8-bit lookup table */
rgb_t ai44[256]; /* alpha, intensity 4-4 lookup table */
- rgb_t rgb565[65536]; /* RGB 5-6-5 lookup table */
+ rgb_t* rgb565; /* RGB 5-6-5 lookup table */
rgb_t argb1555[65536]; /* ARGB 1-5-5-5 lookup table */
rgb_t argb4444[65536]; /* ARGB 4-4-4-4 lookup table */
};
@@ -1723,6 +1723,7 @@ protected:
rgb_t pen[65536]; /* mapping from pixels to pens */
rgb_t clut[512]; /* clut gamma data */
uint8_t clut_dirty; /* do we need to recompute? */
+ rgb_t rgb565[65536]; /* RGB 5-6-5 lookup table */
};