Bug Tracker item #3183993, was opened at 2011-02-16 18:42
Message generated for change (Tracker Item Submitted) made by jtuc
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126848&aid=3183993&group_id=254363

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Windows version
Group: trunk
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jochen Tucht (jtuc)
Assigned to: Peter Åstrand (astrand)
Summary: DeviceContext::getPF(HDC) returns defective PixelFormat

Initial Comment:
The issue is due to PixelFormat::updateState() not being invoked.

A fix that works for me:

win/rfb_win32/DeviceContext.cxx
@@ -127,1 +127,5 @@

-  return format;
+  // Use 10 arguments constructor to trigger PixelFormat::updateState()
+  return PixelFormat(format.bpp, format.depth,
+                     format.bigEndian, format.trueColour,
+                     format.redMax, format.greenMax, format.blueMax,
+                     format.redShift, format.greenShift, format.blueShift);


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126848&aid=3183993&group_id=254363

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Tigervnc-devel mailing list
Tigervnc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-devel

Reply via email to