mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-22 10:02:32 +02:00
fixed 1.0.10 compilation
git-svn-id: trunk@6809 -
This commit is contained in:
parent
32ed3ffefa
commit
e9a11c2116
@ -334,7 +334,7 @@ begin
|
|||||||
then begin
|
then begin
|
||||||
DebugLn(ProcName,Format(rsWarningUnreleasedGDIObjectsDump,
|
DebugLn(ProcName,Format(rsWarningUnreleasedGDIObjectsDump,
|
||||||
[FGDIObjects.Count]));
|
[FGDIObjects.Count]));
|
||||||
for GDIType := Low(GDIType) to High(GDIType) do
|
for GDIType := Low(TGDIType) to High(TGDIType) do
|
||||||
GDITypeCount[GDIType] := 0;
|
GDITypeCount[GDIType] := 0;
|
||||||
|
|
||||||
n:=0;
|
n:=0;
|
||||||
@ -7010,6 +7010,9 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.629 2005/02/19 16:30:46 mattias
|
||||||
|
fixed 1.0.10 compilation
|
||||||
|
|
||||||
Revision 1.628 2005/02/17 02:10:52 mattias
|
Revision 1.628 2005/02/17 02:10:52 mattias
|
||||||
fixed gtk2 intf checking if signal already connected
|
fixed gtk2 intf checking if signal already connected
|
||||||
|
|
||||||
|
@ -8002,11 +8002,10 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
{$IFDEF GTK1}
|
{$IFDEF GTK1}
|
||||||
{$IFNDEF Ver1_0}
|
|
||||||
var
|
var
|
||||||
FirstScreenCalled: Boolean = False;
|
FirstScreenCalled: Boolean = False;
|
||||||
FirstScreenResult: Boolean = False;
|
FirstScreenResult: Boolean = False;
|
||||||
|
{$IFNDEF Ver1_0}
|
||||||
function GetFirstScreen: Boolean;
|
function GetFirstScreen: Boolean;
|
||||||
var
|
var
|
||||||
nMonitors: cint;
|
nMonitors: cint;
|
||||||
@ -8017,7 +8016,7 @@ var
|
|||||||
pXineramaQueryScreens: function (dpy: PDisplay;
|
pXineramaQueryScreens: function (dpy: PDisplay;
|
||||||
number: Pcint): PXineramaScreenInfo;cdecl;
|
number: Pcint): PXineramaScreenInfo;cdecl;
|
||||||
begin
|
begin
|
||||||
if not FirstScreenCalled then
|
if not FirstScreenCalled then begin
|
||||||
if XQueryExtension(X11Display, 'XINERAMA', @opcode, @firstevent,
|
if XQueryExtension(X11Display, 'XINERAMA', @opcode, @firstevent,
|
||||||
@firsterror)
|
@firsterror)
|
||||||
then begin
|
then begin
|
||||||
@ -8041,11 +8040,12 @@ begin
|
|||||||
FreeLibrary(XineramaLib);
|
FreeLibrary(XineramaLib);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
FirstScreenCalled := True;
|
FirstScreenCalled := True;
|
||||||
|
end;
|
||||||
Result := FirstScreenResult;
|
Result := FirstScreenResult;
|
||||||
end;
|
end;
|
||||||
{$ENDIF}
|
{$ENDIF VER1_0}
|
||||||
{$ENDIF}
|
{$ENDIF Gtk1}
|
||||||
|
|
||||||
{$IFDEF ASSERT_IS_ON}
|
{$IFDEF ASSERT_IS_ON}
|
||||||
{$UNDEF ASSERT_IS_ON}
|
{$UNDEF ASSERT_IS_ON}
|
||||||
@ -8057,6 +8057,9 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.337 2005/02/19 16:30:47 mattias
|
||||||
|
fixed 1.0.10 compilation
|
||||||
|
|
||||||
Revision 1.336 2005/02/19 16:19:19 mattias
|
Revision 1.336 2005/02/19 16:19:19 mattias
|
||||||
added xinerama recognition fro gtk1/fpc1_9+ from C Western
|
added xinerama recognition fro gtk1/fpc1_9+ from C Western
|
||||||
|
|
||||||
|
@ -4566,6 +4566,7 @@ begin
|
|||||||
if Buf = nil then
|
if Buf = nil then
|
||||||
Result := SizeOf(TDIBSECTION)
|
Result := SizeOf(TDIBSECTION)
|
||||||
else begin
|
else begin
|
||||||
|
FillChar(BitmapSection,SizeOf(TDIBSECTION),0);
|
||||||
With PGDIObject(GDIObj)^, BitmapSection,
|
With PGDIObject(GDIObj)^, BitmapSection,
|
||||||
BitmapSection.dsBm, BitmapSection.dsBmih
|
BitmapSection.dsBm, BitmapSection.dsBmih
|
||||||
do begin
|
do begin
|
||||||
@ -5269,18 +5270,22 @@ begin
|
|||||||
SM_CXSCREEN:
|
SM_CXSCREEN:
|
||||||
begin
|
begin
|
||||||
{$IFDEF GTK1} { Partial fix for multi monitor systems - force use of first one }
|
{$IFDEF GTK1} { Partial fix for multi monitor systems - force use of first one }
|
||||||
|
{$IFNDEF VER1_0}
|
||||||
if GetFirstScreen then
|
if GetFirstScreen then
|
||||||
result := FirstScreen.x
|
result := FirstScreen.x
|
||||||
else
|
else
|
||||||
|
{$ENDIF}
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
result := gdk_Screen_Width;
|
result := gdk_Screen_Width;
|
||||||
end;
|
end;
|
||||||
SM_CYSCREEN:
|
SM_CYSCREEN:
|
||||||
begin
|
begin
|
||||||
{$IFDEF GTK1}
|
{$IFDEF GTK1}
|
||||||
|
{$IFNDEF VER1_0}
|
||||||
if GetFirstScreen then
|
if GetFirstScreen then
|
||||||
result := FirstScreen.y
|
result := FirstScreen.y
|
||||||
else
|
else
|
||||||
|
{$ENDIF}
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
result := gdk_Screen_Height;
|
result := gdk_Screen_Height;
|
||||||
end;
|
end;
|
||||||
@ -8905,6 +8910,9 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.398 2005/02/19 16:30:47 mattias
|
||||||
|
fixed 1.0.10 compilation
|
||||||
|
|
||||||
Revision 1.397 2005/02/19 16:19:19 mattias
|
Revision 1.397 2005/02/19 16:19:19 mattias
|
||||||
added xinerama recognition fro gtk1/fpc1_9+ from C Western
|
added xinerama recognition fro gtk1/fpc1_9+ from C Western
|
||||||
|
|
||||||
|
@ -144,6 +144,7 @@ begin
|
|||||||
SetColorDialogColor(PGtkColorSelection(GtkWindow),
|
SetColorDialogColor(PGtkColorSelection(GtkWindow),
|
||||||
TColorDialog(ACommonDialog).Color);
|
TColorDialog(ACommonDialog).Color);
|
||||||
{$IFDEF Gtk1}
|
{$IFDEF Gtk1}
|
||||||
|
{$IFNDEF VER1_0}
|
||||||
if GetFirstScreen then begin
|
if GetFirstScreen then begin
|
||||||
{ Fix multi screen problems, at least partially by forcing dialog to centre of first screen }
|
{ Fix multi screen problems, at least partially by forcing dialog to centre of first screen }
|
||||||
gtk_widget_size_request(PGtkWidget(GtkWindow), @Requisition);
|
gtk_widget_size_request(PGtkWidget(GtkWindow), @Requisition);
|
||||||
@ -151,6 +152,7 @@ begin
|
|||||||
(FirstScreen.y - Requisition.height) div 2);
|
(FirstScreen.y - Requisition.height) div 2);
|
||||||
end else
|
end else
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
{$ENDIF}
|
||||||
gtk_window_set_position(GtkWindow, GTK_WIN_POS_CENTER);
|
gtk_window_set_position(GtkWindow, GTK_WIN_POS_CENTER);
|
||||||
GtkWindowShowModal(GtkWindow);
|
GtkWindowShowModal(GtkWindow);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user