made it more accurateslop

This commit is contained in:
2026-05-11 21:07:27 +03:00
parent fbd91be56d
commit 37faa466f3
2 changed files with 15 additions and 19 deletions

View File

@@ -3370,7 +3370,7 @@ int nn_mapDepth(int color, int depth) {
// TODO: map the other depths
if(depth == 4) return nn_mapColor(color, nn_ocpalette4, 16);
if(depth == 8) return nn_mapColor(color, nn_ocpalette8, 256);
if(depth == 16) return color & 0xF0FFF0;
if(depth == 16) return (color & 0xF0FFF0) | ((color & 0xF000F0) >> 4);
return color;
}