Commit f645af32 authored by Martin Schreiber's avatar Martin Schreiber

+ --NOZEROLINES commandline option.

parent 4d63260e
...@@ -76,6 +76,10 @@ MSEgui command line parameters ...@@ -76,6 +76,10 @@ MSEgui command line parameters
Change the used fonts. Example for a 16 pixel height default font: Change the used fonts. Example for a 16 pixel height default font:
--FONTALIAS=stf_default,,16 --FONTALIAS=stf_default,,16
--NOZEROLINES
Use 1-width lines instead of 0-width lines. X11 only. Workaround for buggy HW-accelerated
X-servers which don't draw lineends exactly. Can degrade performance.
--NOZORDERHANDLING --NOZORDERHANDLING
Do not touch Z-order of the windows. Do not touch Z-order of the windows.
......
...@@ -39,9 +39,6 @@ var ...@@ -39,9 +39,6 @@ var
screenrenderpictformat,bitmaprenderpictformat, screenrenderpictformat,bitmaprenderpictformat,
alpharenderpictformat, alpharenderpictformat,
rgbrenderpictformat,argbrenderpictformat: pxrenderpictformat; rgbrenderpictformat,argbrenderpictformat: pxrenderpictformat;
zerolineworkaround: boolean;
//use one pixel line width instead of 0-line, new X11 servers don't
//draw 0-line endpixels reliable
function createalphapicture(const size: sizety; function createalphapicture(const size: sizety;
const arepeat: boolean = false): tpicture; const arepeat: boolean = false): tpicture;
...@@ -3324,7 +3321,7 @@ begin ...@@ -3324,7 +3321,7 @@ begin
end; end;
} }
initialization initialization
zerolineworkaround:= true; // zerolineworkaround:= true;
fhasxft:= getxftlib; fhasxft:= getxftlib;
hasxrender:= getxrenderlib; hasxrender:= getxrenderlib;
// gdinumber:= registergdi(x11getgdifuncs); // gdinumber:= registergdi(x11getgdifuncs);
......
...@@ -19264,6 +19264,11 @@ begin ...@@ -19264,6 +19264,11 @@ begin
norestackwindow:= true; norestackwindow:= true;
continue; continue;
end; end;
if ar1[int1] = '--NOZEROLINES' then begin
zerolineworkaround:= true;
deleteitem();
continue;
end;
if ar1[int1] = '--NOZORDERHANDLING' then begin if ar1[int1] = '--NOZORDERHANDLING' then begin
nozorderhandling:= true; nozorderhandling:= true;
deleteitem(); deleteitem();
......
...@@ -299,6 +299,9 @@ type ...@@ -299,6 +299,9 @@ type
const const
E_NOINTERFACE = longword($80004002); E_NOINTERFACE = longword($80004002);
var var
zerolineworkaround: boolean;
//use one pixel line width instead of 0-line, new X11 servers don't
//draw 0-line endpixels reliable
nozorderhandling: boolean; nozorderhandling: boolean;
norestackwindow: boolean; norestackwindow: boolean;
stackmodebelowworkaround: boolean; stackmodebelowworkaround: boolean;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment