1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:47:35 +00:00

Ladybird/Qt: Adjust the Inspector context menu by the device pixel ratio

Otherwise, the context menu is very out of position on devices with a
device pixel ratio other than 1.
This commit is contained in:
Timothy Flynn 2024-03-10 22:17:35 -04:00 committed by Andreas Kling
parent b5e8f0ebfe
commit 3e1ffc03c4
2 changed files with 3 additions and 11 deletions

View file

@ -38,8 +38,6 @@ private:
bool event(QEvent*) override;
void closeEvent(QCloseEvent*) override;
QPoint to_widget_position(Gfx::IntPoint) const;
QScreen* m_current_screen;
double m_device_pixel_ratio { 0 };