Revision: 5186
          http://sourceforge.net/p/tigervnc/code/5186
Author:   ossman_
Date:     2014-06-13 11:26:21 +0000 (Fri, 13 Jun 2014)
Log Message:
-----------
Accidentally removed some code in the previous commit.

Modified Paths:
--------------
    trunk/unix/x0vncserver/x0vncserver.cxx

Modified: trunk/unix/x0vncserver/x0vncserver.cxx
===================================================================
--- trunk/unix/x0vncserver/x0vncserver.cxx      2014-06-13 10:56:59 UTC (rev 
5185)
+++ trunk/unix/x0vncserver/x0vncserver.cxx      2014-06-13 11:26:21 UTC (rev 
5186)
@@ -269,6 +269,20 @@
     return Point(pb->width(), pb->height());
   }
 
+  // -=- ColourMap callbacks
+  virtual void lookup(int index, int* r, int* g, int* b) {
+    XColor xc;
+    xc.pixel = index;
+    if (index < DisplayCells(dpy,DefaultScreen(dpy))) {
+      XQueryColor(dpy, DefaultColormap(dpy,DefaultScreen(dpy)), &xc);
+    } else {
+      xc.red = xc.green = xc.blue = 0;
+    }
+    *r = xc.red;
+    *g = xc.green;
+    *b = xc.blue;
+  }
+
   // -=- TXGlobalEventHandler interface
 
   virtual bool handleGlobalEvent(XEvent* ev) {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Tigervnc-commits mailing list
Tigervnc-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to