Skip to content


8314141: Missing default for switch in CreateBitmap
Browse files Browse the repository at this point in the history
Reviewed-by: jdv, jhendrikx, kcr
  • Loading branch information
arapte committed Aug 11, 2023
1 parent 5d74176 commit 8998b2d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2359,6 +2359,7 @@ JNIEXPORT jlong JNICALL OS_NATIVE(CreateBitmap)
case com_sun_javafx_font_directwrite_OS_GUID_WICPixelFormat32bppGrayFloat: pixelFormat = GUID_WICPixelFormat32bppGrayFloat; break;
case com_sun_javafx_font_directwrite_OS_GUID_WICPixelFormat32bppRGBA: pixelFormat = GUID_WICPixelFormat32bppRGBA; break;
case com_sun_javafx_font_directwrite_OS_GUID_WICPixelFormat32bppPRGBA: pixelFormat = GUID_WICPixelFormat32bppPRGBA; break;
default: return NULL;
HRESULT hr = ((IWICImagingFactory *)arg0)->CreateBitmap(arg1, arg2, (REFWICPixelFormatGUID)pixelFormat, (WICBitmapCreateCacheOption)arg4, &result);
return SUCCEEDED(hr) ? (jlong)result : NULL;
Expand Down

1 comment on commit 8998b2d

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.