@@ -1600,7 +1600,7 @@ end
1600
1600
1601
1601
-- *********************************************
1602
1602
-- *********************************************
1603
- -- Special dialog widgets:
1603
+ -- Special dialog widgets:
1604
1604
-- *********************************************
1605
1605
-- *********************************************
1606
1606
@@ -1627,7 +1627,7 @@ function gooi.dialog(params, kind)
1627
1627
positiveBtnTxt = params .okText or positiveBtnTxt
1628
1628
negativeBtnTxt = params .cancelText or negativeBtnTxt
1629
1629
1630
- local w , h = love .graphics .getWidth (), love .graphics .getHeight ()
1630
+ local w , h = love .graphics .getWidth () / gooi . sx , love .graphics .getHeight () / gooi . sy
1631
1631
1632
1632
local smaller = gooi .smallerSide ()
1633
1633
@@ -1640,10 +1640,10 @@ function gooi.dialog(params, kind)
1640
1640
end
1641
1641
1642
1642
gooi .panelDialog = gooi .newPanel ({
1643
- x = math.floor (w / 2 - gooi .dialogW / 2 ),
1644
- y = math.floor (h / 2 - gooi .dialogH / 2 ),
1645
- w = math.floor (gooi .dialogW ),
1646
- h = math.floor (gooi .dialogH ),
1643
+ x = math.floor (w / 2 - gooi .dialogW / 2 / gooi . sx ),
1644
+ y = math.floor (h / 2 - gooi .dialogH / 2 / gooi . sy ),
1645
+ w = math.floor (gooi .dialogW / gooi . sx ),
1646
+ h = math.floor (gooi .dialogH / gooi . sy ),
1647
1647
layout = " grid 3x3" }
1648
1648
)
1649
1649
0 commit comments