Mercurial > projects > dwt-mac
diff dwt/graphics/GC.d @ 37:642f460a0908
Fixed a lot of compile errors, a "hello world" app compiles now
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Fri, 10 Oct 2008 12:29:48 +0200 |
parents | db5a898b2119 |
children | d8635bb48c7c |
line wrap: on
line diff
--- a/dwt/graphics/GC.d Tue Oct 07 12:56:18 2008 +0200 +++ b/dwt/graphics/GC.d Fri Oct 10 12:29:48 2008 +0200 @@ -651,7 +651,7 @@ if ((flags & DWT.DRAW_TRANSPARENT) is 0) { CGFloat[] background = data.background; color = NSColor.colorWithDeviceRed(background[0], background[1], background[2], data.alpha / 255f); - dict.setObject(color, OS.NSBackgroundColorAttributeName()); + dict.setObject(color, OS.FuncNSBackgroundColorAttributeName()); } size_t length = string.length(); char[] chars = new char[length]; @@ -2051,8 +2051,8 @@ } } region.add(cast(int)rect.x, cast(int)rect.y, cast(int)rect.width, cast(int)rect.height); - NSRect paintRect = *data.paintRect; - if (paintRect !is NSRect.init) { + NSRect* paintRect = data.paintRect; + if (paintRect !is null) { region.intersect(cast(int)paintRect.x, cast(int)paintRect.y, cast(int)paintRect.width, cast(int)paintRect.height); } if (data.clipPath !is null) {