mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-01 12:40:36 +00:00
Fix title alignment of manually positioned dialog boxes.
This commit is contained in:
parent
10ce118bec
commit
48c99d2247
|
@ -5254,7 +5254,7 @@ SUB idedrawpar (p AS idedbptype)
|
||||||
COLOR 0, 7: ideboxshadow p.x, p.y, p.w + 2, p.h + 2
|
COLOR 0, 7: ideboxshadow p.x, p.y, p.w + 2, p.h + 2
|
||||||
IF p.nam THEN
|
IF p.nam THEN
|
||||||
x = LEN(idetxt(p.nam)) + 2
|
x = LEN(idetxt(p.nam)) + 2
|
||||||
COLOR 0, 7: LOCATE p.y, (idewx \ 2) - (x - 1) \ 2: PRINT " " + idetxt(p.nam) + " ";
|
COLOR 0, 7: LOCATE p.y, p.x + (p.w \ 2) - (x - 1) \ 2: PRINT " " + idetxt(p.nam) + " ";
|
||||||
END IF
|
END IF
|
||||||
END SUB
|
END SUB
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue