equal
deleted
inserted
replaced
40 import sun.awt.windows.WFontConfiguration; |
40 import sun.awt.windows.WFontConfiguration; |
41 import sun.awt.windows.WPrinterJob; |
41 import sun.awt.windows.WPrinterJob; |
42 import sun.awt.windows.WToolkit; |
42 import sun.awt.windows.WToolkit; |
43 import sun.font.FontManager; |
43 import sun.font.FontManager; |
44 import sun.java2d.SunGraphicsEnvironment; |
44 import sun.java2d.SunGraphicsEnvironment; |
|
45 import sun.java2d.SurfaceManagerFactory; |
|
46 import sun.java2d.WindowsSurfaceManagerFactory; |
45 import sun.java2d.windows.WindowsFlags; |
47 import sun.java2d.windows.WindowsFlags; |
46 |
48 |
47 /** |
49 /** |
48 * This is an implementation of a GraphicsEnvironment object for the |
50 * This is an implementation of a GraphicsEnvironment object for the |
49 * default local GraphicsEnvironment used by the Java Runtime Environment |
51 * default local GraphicsEnvironment used by the Java Runtime Environment |
62 WToolkit.loadLibraries(); |
64 WToolkit.loadLibraries(); |
63 // setup flags before initializing native layer |
65 // setup flags before initializing native layer |
64 WindowsFlags.initFlags(); |
66 WindowsFlags.initFlags(); |
65 initDisplayWrapper(); |
67 initDisplayWrapper(); |
66 eudcFontFileName = getEUDCFontFile(); |
68 eudcFontFileName = getEUDCFontFile(); |
|
69 |
|
70 // Install correct surface manager factory. |
|
71 SurfaceManagerFactory.setInstance(new WindowsSurfaceManagerFactory()); |
67 } |
72 } |
68 |
73 |
69 /** |
74 /** |
70 * Noop function that just acts as an entry point for someone to force |
75 * Noop function that just acts as an entry point for someone to force |
71 * a static initialization of this class. |
76 * a static initialization of this class. |