mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
parent
470a6e4401
commit
13fcc4a046
949 changed files with 95662 additions and 444 deletions
|
|
@ -241,8 +241,8 @@ LayoutDeviceIntRect nsView::CalcWidgetBounds(nsWindowType aType)
|
|||
LayoutDeviceIntRect newBounds =
|
||||
LayoutDeviceIntRect::FromUnknownRect(viewBounds.ToNearestPixels(p2a));
|
||||
|
||||
#if (MOZ_WIDGET_GTK == 3)
|
||||
// GTK 3 rounds widget coordinates to the nearest global "display
|
||||
#if defined(XP_MACOSX) || (MOZ_WIDGET_GTK == 3)
|
||||
// cocoa and GTK round widget coordinates to the nearest global "display
|
||||
// pixel" integer value. So we avoid fractional display pixel values by
|
||||
// rounding to the nearest value that won't yield a fractional display pixel.
|
||||
nsIWidget* widget = parentWidget ? parentWidget : mWindow.get();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue