mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
Fix a stupid one-character typo that was breaking 256-colour support on GTK.
[originally from svn r7403]
This commit is contained in:
parent
36db0d6f72
commit
d1df3e226a
@ -1434,7 +1434,7 @@ void palette_reset(void *frontend)
|
|||||||
int r = i / 36, g = (i / 6) % 6, b = i % 6;
|
int r = i / 36, g = (i / 6) % 6, b = i % 6;
|
||||||
inst->cols[i+16].red = r ? r * 0x2828 + 0x3737 : 0;
|
inst->cols[i+16].red = r ? r * 0x2828 + 0x3737 : 0;
|
||||||
inst->cols[i+16].green = g ? g * 0x2828 + 0x3737 : 0;
|
inst->cols[i+16].green = g ? g * 0x2828 + 0x3737 : 0;
|
||||||
inst->cols[i+16].blue = b ? b + 0x2828 + 0x3737 : 0;
|
inst->cols[i+16].blue = b ? b * 0x2828 + 0x3737 : 0;
|
||||||
} else {
|
} else {
|
||||||
int shade = i - 216;
|
int shade = i - 216;
|
||||||
shade = shade * 0x0a0a + 0x0808;
|
shade = shade * 0x0a0a + 0x0808;
|
||||||
|
Loading…
Reference in New Issue
Block a user