Mercurial > projects > dwt2
comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/graphics/Device.d @ 112:9f4c18c268b2
Update to compile and execute with dmd 2.052.
author | kntroh |
---|---|
date | Wed, 16 Mar 2011 21:53:53 +0900 |
parents | 735224fcc45f |
children |
comparison
equal
deleted
inserted
replaced
111:b6e9904989ed | 112:9f4c18c268b2 |
---|---|
108 | 108 |
109 | 109 |
110 /* | 110 /* |
111 * TEMPORARY CODE. | 111 * TEMPORARY CODE. |
112 */ | 112 */ |
113 static synchronized Device getDevice () { | 113 static Device getDevice () { |
114 if (DeviceFinder !is null) DeviceFinder.run(); | 114 synchronized { |
115 Device device = CurrentDevice; | 115 if (DeviceFinder !is null) DeviceFinder.run(); |
116 CurrentDevice = null; | 116 Device device = CurrentDevice; |
117 return device; | 117 CurrentDevice = null; |
118 return device; | |
119 } | |
118 } | 120 } |
119 | 121 |
120 /** | 122 /** |
121 * Constructs a new instance of this class. | 123 * Constructs a new instance of this class. |
122 * <p> | 124 * <p> |