Mercurial > projects > dwt-win
comparison dwt/graphics/GC.d @ 334:c49e17d48b76
Fix problems at GC run at main()'s end.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 18 Feb 2009 16:14:31 +0100 |
parents | b3dbd786541a |
children |
comparison
equal
deleted
inserted
replaced
333:684eed7589a0 | 334:c49e17d48b76 |
---|---|
4891 * @return a new <code>GC</code> | 4891 * @return a new <code>GC</code> |
4892 */ | 4892 */ |
4893 public static GC win32_new(Drawable drawable, GCData data) { | 4893 public static GC win32_new(Drawable drawable, GCData data) { |
4894 GC gc = new GC(); | 4894 GC gc = new GC(); |
4895 auto hDC = drawable.internal_new_GC(data); | 4895 auto hDC = drawable.internal_new_GC(data); |
4896 gc.disposeChecking = false; | |
4896 gc.device = data.device; | 4897 gc.device = data.device; |
4897 gc.init_(drawable, data, hDC); | 4898 gc.init_(drawable, data, hDC); |
4898 return gc; | 4899 return gc; |
4899 } | 4900 } |
4900 | 4901 |
4913 * | 4914 * |
4914 * @return a new <code>GC</code> | 4915 * @return a new <code>GC</code> |
4915 */ | 4916 */ |
4916 public static GC win32_new(HDC hDC, GCData data) { | 4917 public static GC win32_new(HDC hDC, GCData data) { |
4917 GC gc = new GC(); | 4918 GC gc = new GC(); |
4919 gc.disposeChecking = false; | |
4918 gc.device = data.device; | 4920 gc.device = data.device; |
4919 data.style |= DWT.LEFT_TO_RIGHT; | 4921 data.style |= DWT.LEFT_TO_RIGHT; |
4920 if (OS.WIN32_VERSION >= OS.VERSION (4, 10)) { | 4922 if (OS.WIN32_VERSION >= OS.VERSION (4, 10)) { |
4921 int flags = OS.GetLayout (hDC); | 4923 int flags = OS.GetLayout (hDC); |
4922 if ((flags & OS.LAYOUT_RTL) !is 0) { | 4924 if ((flags & OS.LAYOUT_RTL) !is 0) { |