Add 332 color
This commit is contained in:
parent
76cc3227bb
commit
b4aa9cd867
9 changed files with 128 additions and 29 deletions
15
assets.h
15
assets.h
|
@ -7027,6 +7027,10 @@ void LCR_loadImage(unsigned int index)
|
|||
LCR_currentImage.palette[i] = *LCR_currentImage.image;
|
||||
LCR_currentImage.image++;
|
||||
LCR_currentImage.palette[i] |= ((uint16_t) (*LCR_currentImage.image)) << 8;
|
||||
|
||||
LCR_currentImage.palette[i] =
|
||||
LCR_CONVERT_COLOR(LCR_currentImage.palette[i]);
|
||||
|
||||
LCR_currentImage.image++;
|
||||
}
|
||||
|
||||
|
@ -7042,11 +7046,20 @@ void LCR_imageChangeBrightness(int up)
|
|||
{
|
||||
if (up)
|
||||
for (int i = 0; i < 256; ++i)
|
||||
LCR_currentImage.palette[i] |= 0x18e3;
|
||||
LCR_currentImage.palette[i] |=
|
||||
#if LCR_SETTING_332_COLOR
|
||||
0x0024;
|
||||
#else
|
||||
0x18e3;
|
||||
#endif
|
||||
else
|
||||
for (int i = 0; i < 256; ++i)
|
||||
LCR_currentImage.palette[i] =
|
||||
#if LCR_SETTING_332_COLOR
|
||||
LCR_currentImage.palette[i] & 0x00db;
|
||||
#else
|
||||
((LCR_currentImage.palette[i] >> 1) & 0x7bef);
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue