mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-07-28 14:52:53 +00:00
Fix to setPaletteColour in rgb8 mode.
Was not saving color if called using rgb8 mode.
This commit is contained in:
parent
3828750ade
commit
a90e2a8bfd
@ -296,6 +296,7 @@ function create( parent, nX, nY, nWidth, nHeight, bStartVisible )
|
|||||||
local tCol
|
local tCol
|
||||||
if type(colour) == "number" and type(r) == "number" and g == nil and b == nil then
|
if type(colour) == "number" and type(r) == "number" and g == nil and b == nil then
|
||||||
tCol = { colours.rgb8( r ) }
|
tCol = { colours.rgb8( r ) }
|
||||||
|
tPalette[ colour ] = tCol
|
||||||
elseif type(colour) == "number" and type(r) == "number" and type(g) == "number" and type(b) == "number" then
|
elseif type(colour) == "number" and type(r) == "number" and type(g) == "number" and type(b) == "number" then
|
||||||
tCol = tPalette[ colour ]
|
tCol = tPalette[ colour ]
|
||||||
tCol[1] = r
|
tCol[1] = r
|
||||||
|
Loading…
x
Reference in New Issue
Block a user