Skip to content

Commit

Permalink
Merge pull request #303 from Wojbie/Window-api-fix
Browse files Browse the repository at this point in the history
Fix to setPaletteColour in rgb8 mode.
  • Loading branch information
dan200 authored Jun 4, 2017
2 parents 4f3be79 + a90e2a8 commit 0f982e6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0f982e6

Please sign in to comment.