summaryrefslogtreecommitdiffstats
path: root/vncterm/VNConsole.c
diff options
context:
space:
mode:
authordscho <dscho>2003-02-10 20:10:38 +0000
committerdscho <dscho>2003-02-10 20:10:38 +0000
commit47c481b7ca247b6abdbece512be30427135b7a39 (patch)
tree160b9f31502aa7b03b7eb0795d45e8ae3a7d2132 /vncterm/VNConsole.c
parentd3bb5fb6eb920b7149fa5544ef893afa038b772c (diff)
downloadlibtdevnc-47c481b7ca247b6abdbece512be30427135b7a39.tar.gz
libtdevnc-47c481b7ca247b6abdbece512be30427135b7a39.zip
fixed LinuxVNC colours
Diffstat (limited to 'vncterm/VNConsole.c')
-rw-r--r--vncterm/VNConsole.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/vncterm/VNConsole.c b/vncterm/VNConsole.c
index 1335aee..72e2fdc 100644
--- a/vncterm/VNConsole.c
+++ b/vncterm/VNConsole.c
@@ -29,9 +29,7 @@ void MakeColourMap16(vncConsolePtr c)
if(colourMap->count)
free(colourMap->data.bytes);
colourMap->data.bytes=malloc(16*3);
- for(i=0;i<16;i++)
- for(j=0;j<3;j++)
- colourMap->data.bytes[i*3+2-j]=colourMap16[i*3+j];
+ memcpy(colourMap->data.bytes,colourMap16,16*3);
colourMap->count=16;
colourMap->is16=FALSE;
c->rfbScreen->rfbServerFormat.trueColour=FALSE;