@@ -105,11 +105,11 @@ HICON Pixels::CreateIcon(JNIEnv *env, jobject jPixels, BOOL fIcon, jint x, jint y) { Pixels pixels(env, jPixels); Bitmap mask(pixels.GetWidth(), pixels.GetHeight()); - Bitmap bitmap(pixels); + DIBitmap bitmap(pixels); ICONINFO iconInfo; memset(&iconInfo, 0, sizeof(ICONINFO)); iconInfo.hbmMask = mask; iconInfo.hbmColor = bitmap;