JDK-2152145 : Rendering issues on Vista caused by use of GDI and DDraw on onscreen surfaces
  • Type: Backport
  • Backport of: JDK-6343853
  • Component: client-libs
  • Sub-Component: 2d
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2007-08-27
  • Updated: 2012-03-22
  • Resolved: 2008-11-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 6
1.4.2_19-rev b05Fixed 6Fixed
Comments
EVALUATION Webrev for the fix: http://jpsesvr.sfbay.sun.com:8080/ctetools/html/ViewDetail.jsp?index=2598
28-07-2008

EVALUATION Graphical applications experience some rendering issues under Windows Vista. They are caused by using both DDraw and GDI to render to onscreen surfaces to the same area. It worked with previous Windows versions, but it was never guaranteed. On Windows Vista, applications should either use GDI or DDraw exclusively. A simple fix (yielding quite acceptable performance) is to disable the use of DDraw on Windows Vista. The original fix integrated into JDK 6 and JDK 5.0u8 cannot be directly backported to JDK 1.4.2. That fix was put into the centralized storage of AWT-related command-line flags, but there is no such storage in JDK 1.4.2. Instead, I inserted the same functionality (disabling DDraw usage under Windows Vista unless it is requested explicitly) into ddrawUtils.cpp:DDInit() function. Please note that as against to the original fix, the code doesn't check "sun.java2d.noddraw" flag, so DDraw usage cannot be forced under Windows Vista.
25-07-2008