Mercurial > projects > dwt-win
comparison dwt/graphics/Cursor.d @ 197:184ab53b7785
Changes and fixes for jface
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 10 Apr 2008 11:19:49 +0200 |
parents | 0a96e5a30470 |
children | ab60f3309436 |
comparison
equal
deleted
inserted
replaced
196:1e7701c27c03 | 197:184ab53b7785 |
---|---|
345 if (hotspotX >= source.width || hotspotX < 0 || | 345 if (hotspotX >= source.width || hotspotX < 0 || |
346 hotspotY >= source.height || hotspotY < 0) { | 346 hotspotY >= source.height || hotspotY < 0) { |
347 DWT.error(DWT.ERROR_INVALID_ARGUMENT); | 347 DWT.error(DWT.ERROR_INVALID_ARGUMENT); |
348 } | 348 } |
349 ImageData mask = source.getTransparencyMask(); | 349 ImageData mask = source.getTransparencyMask(); |
350 int[] result = Image.init(device, null, source, mask); | 350 int[] result = Image.init_(device, null, source, mask); |
351 auto hBitmap = cast(HBITMAP)result[0]; | 351 auto hBitmap = cast(HBITMAP)result[0]; |
352 auto hMask = cast(HBITMAP)result[1]; | 352 auto hMask = cast(HBITMAP)result[1]; |
353 /* Create the icon */ | 353 /* Create the icon */ |
354 ICONINFO info; | 354 ICONINFO info; |
355 info.fIcon = false; | 355 info.fIcon = false; |