8355884: [macos] java/awt/Frame/I18NTitle.java fails on MacOS

Reviewed-by: kcr, dmarkov, aivanov, honkar, kizune
This commit is contained in:
Phil Race 2025-05-05 18:37:32 +00:00 committed by Jaikiran Pai
parent 5ae719c8fc
commit 52e1e739af

View File

@ -494,8 +494,8 @@ CGGI_SizeCanvas(CGGI_GlyphCanvas *canvas, const vImagePixelCount width,
const CGGI_RenderingMode* mode)
{
if (canvas->image != NULL &&
width * CGGI_GLYPH_CANVAS_SLACK <= canvas->image->width &&
height * CGGI_GLYPH_CANVAS_SLACK <= canvas->image->height)
width < canvas->image->width &&
height < canvas->image->height)
{
return;
}