mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-02 07:12:41 +02:00
LCL, gtk, fix LazReport designer sometimes presented as a thin vertical or horizontal band that runs from center of screen under gtk2/64-bit, related to issue #21634
git-svn-id: trunk@40562 -
This commit is contained in:
parent
bd059601c2
commit
abc18517a2
@ -116,8 +116,12 @@ var
|
||||
// for unknown reasons on some systems SM_*MAXIMIZED* system metrics
|
||||
// (tested xubuntu,64bits) return 0 or negative values, in this case
|
||||
// a maximized window is expected to have at least WorkArea width/height.
|
||||
// In the event WorkArea is also 0 width/height, at least
|
||||
// design sizes should be respected, see bug #21634
|
||||
//
|
||||
// Reproduced again under Debian Wheezy.
|
||||
// mistery solved, it ocurrs under gtk2/64-bit, fixed at the place
|
||||
// the checks doesn't hurt though
|
||||
//
|
||||
// see bug #21634
|
||||
if NewWidth<=0 then
|
||||
NewWidth := Screen.WorkAreaWidth;
|
||||
if NewHeight<=0 then
|
||||
|
@ -9352,7 +9352,8 @@ var
|
||||
Format: gint;
|
||||
nitems: gulong;
|
||||
bytes_after: gulong;
|
||||
current_desktop: pguint;
|
||||
current_desktop: pclong; // format=32 returns an array of "c" longs which in 64-bit app
|
||||
// will be 64-bit values that are padded in the upper 4 bytes
|
||||
res : Integer;
|
||||
begin
|
||||
Result := -1;
|
||||
|
Loading…
Reference in New Issue
Block a user