modules/graphics/src/main/native-glass/win/Pixels.cpp

Print this page

        

*** 105,115 **** 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); ICONINFO iconInfo; memset(&iconInfo, 0, sizeof(ICONINFO)); iconInfo.hbmMask = mask; iconInfo.hbmColor = bitmap; --- 105,115 ---- HICON Pixels::CreateIcon(JNIEnv *env, jobject jPixels, BOOL fIcon, jint x, jint y) { Pixels pixels(env, jPixels); Bitmap mask(pixels.GetWidth(), pixels.GetHeight()); ! DIBitmap bitmap(pixels); ICONINFO iconInfo; memset(&iconInfo, 0, sizeof(ICONINFO)); iconInfo.hbmMask = mask; iconInfo.hbmColor = bitmap;