1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-13 11:40:29 +00:00

Merge pull request #303 from Wojbie/Window-api-fix

Fix to setPaletteColour in rgb8 mode.
This commit is contained in:
Daniel Ratcliffe 2017-06-04 13:58:40 +01:00 committed by GitHub
commit 0f982e6199

View File

@ -299,6 +299,7 @@ function create( parent, nX, nY, nWidth, nHeight, bStartVisible )
local tCol
if type(colour) == "number" and type(r) == "number" and g == nil and b == nil then
tCol = { colours.rgb8( r ) }
tPalette[ colour ] = tCol
elseif type(colour) == "number" and type(r) == "number" and type(g) == "number" and type(b) == "number" then
tCol = tPalette[ colour ]
tCol[1] = r