/[classpath]/classpath/gnu/java/awt/peer/gtk/GdkGraphics2D.java
ViewVC logotype

Diff of /classpath/gnu/java/awt/peer/gtk/GdkGraphics2D.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.45 by mark, Thu Sep 8 23:13:23 2005 UTC revision 1.46 by fitzsim, Sat Sep 10 01:01:54 2005 UTC
# Line 107  public class GdkGraphics2D extends Graph Line 107  public class GdkGraphics2D extends Graph
107      if (Configuration.INIT_LOAD_LIBRARY)      if (Configuration.INIT_LOAD_LIBRARY)
108        System.loadLibrary("gtkpeer");        System.loadLibrary("gtkpeer");
109    
110      initStaticState();      if (GtkToolkit.useGraphics2D ())
111          initStaticState();
112        else
113          {
114            System.err.println ("Attempted to instantiate GdkGraphics2D but Graphics2D not enabled.  Try again with -Dgnu.java.awt.peer.gtk.Graphics=Graphics2D");
115            System.exit (1);
116          }
117    }    }
118        
119    static native void initStaticState();    static native void initStaticState();
# Line 992  public class GdkGraphics2D extends Graph Line 998  public class GdkGraphics2D extends Graph
998      if (clip == null)      if (clip == null)
999        {        {
1000          // Reset clipping.          // Reset clipping.
1001          Dimension d = component.awtComponent.getSize();          if (component != null)
1002          setClip(0, 0, d.width, d.height);            {
1003                Dimension d = component.awtComponent.getSize();
1004                setClip(0, 0, d.width, d.height);
1005              }
1006        }        }
1007      else      else
1008        {        {

Legend:
Removed from v.1.45  
changed lines
  Added in v.1.46

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26