Mercurial > projects > dwt2
diff org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/Tree.d @ 112:9f4c18c268b2
Update to compile and execute with dmd 2.052.
author | kntroh |
---|---|
date | Wed, 16 Mar 2011 21:53:53 +0900 |
parents | 2e09b0e6857a |
children |
line wrap: on
line diff
--- a/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/Tree.d Sat Nov 13 14:15:51 2010 +0100 +++ b/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/Tree.d Wed Mar 16 21:53:53 2011 +0900 @@ -1193,7 +1193,7 @@ } if (explorerTheme) { if (selected || (hot && ignoreDrawHot)) nmcd.nmcd.uItemState &= ~OS.CDIS_HOT; - OS.MoveMemory (cast(void*)lParam, nmcd, NMTVCUSTOMDRAW.sizeof); + OS.MoveMemory (lParam, nmcd, NMTVCUSTOMDRAW.sizeof); } RECT* itemRect = item.getBounds (index, true, true, false, false, false, hDC); OS.SaveDC (hDC); @@ -1229,7 +1229,7 @@ if (OS.IsWindowEnabled (handle)) drawBackground (hDC, &rect); } nmcd.nmcd.uItemState &= ~OS.CDIS_FOCUS; - OS.MoveMemory (cast(void*)lParam, nmcd, NMTVCUSTOMDRAW.sizeof); + OS.MoveMemory (lParam, nmcd, NMTVCUSTOMDRAW.sizeof); } } } @@ -2728,7 +2728,7 @@ updateFullSelection (); } -bool findCell (int x, int y, inout TreeItem item, inout int index, inout RECT* cellRect, inout RECT* itemRect) { +bool findCell (int x, int y, ref TreeItem item, ref int index, ref RECT* cellRect, ref RECT* itemRect) { bool found = false; TVHITTESTINFO lpht; lpht.pt.x = x; @@ -5842,7 +5842,7 @@ if ((style & SWT.MIRRORED) !is 0) { shdi.ptOffset.x = shdi.sizeDragImage.cx - shdi.ptOffset.x; } - OS.MoveMemory (cast(void*)lParam, &shdi, SHDRAGIMAGE.sizeof); + OS.MoveMemory (lParam, &shdi, SHDRAGIMAGE.sizeof); return 1; } }