harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r568986 - /harmony/enhanced/classlib/trunk/modules/awt/src/main/java/unix/org/apache/harmony/awt/gl/linux/XBlitter.java
Date Thu, 23 Aug 2007 13:40:41 GMT
Author: apetrenko
Date: Thu Aug 23 06:40:41 2007
New Revision: 568986

URL: http://svn.apache.org/viewvc?rev=568986&view=rev
Log:
Patch for HARMONY-4630 "[classlib][swing] require extra events to 
display up-to-date image in Fedora"

Modified:
    harmony/enhanced/classlib/trunk/modules/awt/src/main/java/unix/org/apache/harmony/awt/gl/linux/XBlitter.java

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/java/unix/org/apache/harmony/awt/gl/linux/XBlitter.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/unix/org/apache/harmony/awt/gl/linux/XBlitter.java?rev=568986&r1=568985&r2=568986&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/java/unix/org/apache/harmony/awt/gl/linux/XBlitter.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/java/unix/org/apache/harmony/awt/gl/linux/XBlitter.java
Thu Aug 23 06:40:41 2007
@@ -273,7 +273,8 @@
                 makeClip(dstX, dstY, width, height, clip);
 
                 g2d.setXClip(clip, g2d.imageGC);
-                X11.getInstance().XCopyArea(
+                X11 x11 = X11.getInstance(); 
+                x11.XCopyArea(
                         g2d.display,
                         xSrcSurf.g2d.drawable, g2d.drawable,
                         g2d.imageGC,
@@ -281,6 +282,7 @@
                         width, height,
                         dstX, dstY
                 );
+                x11.XFlush(g2d.display);
                 g2d.resetXClip(g2d.imageGC);
 
                 g2d.setImageGCFunction(X11Defs.GXcopy);



Mime
View raw message