1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-12-23 07:48:50 -05:00

Complication fix.

git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@12 3f818213-9676-44b0-a9b4-5e4c4e03d09d
This commit is contained in:
Wizzup? 2009-09-03 04:04:06 +00:00
parent ba1e0833b0
commit 50ce4db8b4
2 changed files with 793 additions and 817 deletions

View File

@ -5,8 +5,13 @@ unit Window;
interface
uses
Classes, SysUtils, mufasatypes{$IFDEF MSWINDOWS},windows {$ENDIF}, graphics,
LCLType
Classes, SysUtils, mufasatypes
{$IFDEF MSWINDOWS}
,windows // For windows API
{$ENDIF}
, graphics,
LCLType,
LCLIntf // for ReleaseDC and such
{$IFDEF LINUX}, xlib, x, xutil, ctypes{$ENDIF};
@ -357,9 +362,12 @@ begin
case NewType of
w_Window :
begin;
{$IFDEF MSWINDOWS}
ReleaseDC(Self.TargetHandle,Self.TargetDC);
Self.TargetHandle := Window;
Self.TargetDC := GetWindowDC(Window);
{$ENDIF}
end;
end;
{$IFDEF MSWINDOWS}

View File

@ -6,7 +6,7 @@
<MainUnit Value="0"/>
<TargetFileExt Value=""/>
<UseXPManifest Value="True"/>
<ActiveEditorIndexAtStart Value="10"/>
<ActiveEditorIndexAtStart Value="3"/>
</General>
<VersionInfo>
<ProjectVersion Value=""/>
@ -108,7 +108,7 @@
<UnitName Value="Client"/>
<CursorPos X="27" Y="16"/>
<TopLine Value="1"/>
<EditorIndex Value="11"/>
<EditorIndex Value="5"/>
<UsageCount Value="20"/>
<Loaded Value="True"/>
</Unit9>
@ -116,7 +116,7 @@
<Filename Value="Units/MMLCore/input.pas"/>
<UnitName Value="Input"/>
<CursorPos X="52" Y="241"/>
<TopLine Value="234"/>
<TopLine Value="222"/>
<EditorIndex Value="1"/>
<UsageCount Value="20"/>
<Loaded Value="True"/>
@ -126,16 +126,16 @@
<UnitName Value="MufasaTypes"/>
<CursorPos X="20" Y="3"/>
<TopLine Value="1"/>
<EditorIndex Value="6"/>
<EditorIndex Value="2"/>
<UsageCount Value="20"/>
<Loaded Value="True"/>
</Unit11>
<Unit12>
<Filename Value="Units/MMLCore/window.pas"/>
<UnitName Value="Window"/>
<CursorPos X="14" Y="329"/>
<TopLine Value="185"/>
<EditorIndex Value="7"/>
<CursorPos X="9" Y="370"/>
<TopLine Value="353"/>
<EditorIndex Value="3"/>
<UsageCount Value="20"/>
<Loaded Value="True"/>
</Unit12>
@ -180,9 +180,9 @@
<HasResources Value="True"/>
<ResourceBaseClass Value="Form"/>
<UnitName Value="TestUnit"/>
<CursorPos X="34" Y="61"/>
<CursorPos X="44" Y="67"/>
<TopLine Value="50"/>
<EditorIndex Value="10"/>
<EditorIndex Value="4"/>
<UsageCount Value="17"/>
<Loaded Value="True"/>
</Unit18>
@ -239,52 +239,40 @@
<UnitName Value="CompInput"/>
<CursorPos X="6" Y="462"/>
<TopLine Value="449"/>
<EditorIndex Value="2"/>
<UsageCount Value="12"/>
<Loaded Value="True"/>
</Unit26>
<Unit27>
<Filename Value="../FPC/FPCCheckout/rtl/win/wininc/func.inc"/>
<CursorPos X="10" Y="663"/>
<TopLine Value="635"/>
<EditorIndex Value="5"/>
<UsageCount Value="11"/>
<Loaded Value="True"/>
</Unit27>
<Unit28>
<Filename Value="../Compilertje/Units/CogatUnits/comptypes.pas"/>
<UnitName Value="CompTypes"/>
<CursorPos X="13" Y="418"/>
<TopLine Value="402"/>
<EditorIndex Value="3"/>
<UsageCount Value="11"/>
<Loaded Value="True"/>
</Unit28>
<Unit29>
<Filename Value="../Compilertje/Units/CogatUnits/compcolors.pas"/>
<UnitName Value="CompColors"/>
<CursorPos X="12" Y="603"/>
<TopLine Value="573"/>
<EditorIndex Value="4"/>
<UsageCount Value="11"/>
<Loaded Value="True"/>
</Unit29>
<Unit30>
<Filename Value="../lazarus/lcl/graphics.pp"/>
<UnitName Value="Graphics"/>
<CursorPos X="15" Y="1283"/>
<TopLine Value="1270"/>
<EditorIndex Value="8"/>
<UsageCount Value="11"/>
<Loaded Value="True"/>
</Unit30>
<Unit31>
<Filename Value="../lazarus/lcl/include/rasterimage.inc"/>
<CursorPos X="20" Y="351"/>
<TopLine Value="339"/>
<EditorIndex Value="9"/>
<UsageCount Value="11"/>
<Loaded Value="True"/>
</Unit31>
<Unit32>
<Filename Value="../lazarus/lcl/intfgraphics.pas"/>
@ -294,123 +282,103 @@
<UsageCount Value="10"/>
</Unit32>
</Units>
<JumpHistory Count="29" HistoryIndex="28">
<JumpHistory Count="24" HistoryIndex="23">
<Position1>
<Filename Value="../Compilertje/Units/CogatUnits/comptypes.pas"/>
<Caret Line="174" Column="9" TopLine="146"/>
</Position1>
<Position2>
<Filename Value="../Compilertje/Units/CogatUnits/comptypes.pas"/>
<Caret Line="177" Column="19" TopLine="146"/>
</Position2>
<Position3>
<Filename Value="../Compilertje/Units/CogatUnits/comptypes.pas"/>
<Caret Line="324" Column="19" TopLine="296"/>
</Position3>
<Position4>
<Filename Value="../Compilertje/Units/CogatUnits/compinput.pas"/>
<Caret Line="7" Column="140" TopLine="1"/>
</Position4>
<Position5>
<Filename Value="Units/MMLCore/window.pas"/>
<Caret Line="18" Column="30" TopLine="1"/>
</Position5>
<Position6>
<Filename Value="../Compilertje/Units/CogatUnits/comptypes.pas"/>
<Caret Line="11" Column="138" TopLine="6"/>
</Position6>
<Position7>
</Position1>
<Position2>
<Filename Value="Units/MMLCore/window.pas"/>
<Caret Line="156" Column="10" TopLine="146"/>
</Position2>
<Position3>
<Filename Value="testunit.pas"/>
<Caret Line="58" Column="34" TopLine="43"/>
</Position3>
<Position4>
<Filename Value="testunit.pas"/>
<Caret Line="28" Column="59" TopLine="1"/>
</Position4>
<Position5>
<Filename Value="project1.lpr"/>
<Caret Line="16" Column="60" TopLine="1"/>
</Position5>
<Position6>
<Filename Value="project1.lpr"/>
<Caret Line="19" Column="1" TopLine="1"/>
</Position6>
<Position7>
<Filename Value="testunit.pas"/>
<Caret Line="50" Column="42" TopLine="35"/>
</Position7>
<Position8>
<Filename Value="testunit.pas"/>
<Caret Line="58" Column="34" TopLine="43"/>
<Caret Line="62" Column="32" TopLine="59"/>
</Position8>
<Position9>
<Filename Value="testunit.pas"/>
<Caret Line="28" Column="59" TopLine="1"/>
<Caret Line="57" Column="22" TopLine="41"/>
</Position9>
<Position10>
<Filename Value="project1.lpr"/>
<Caret Line="16" Column="60" TopLine="1"/>
<Filename Value="Units/MMLCore/window.pas"/>
<Caret Line="18" Column="27" TopLine="14"/>
</Position10>
<Position11>
<Filename Value="project1.lpr"/>
<Caret Line="19" Column="1" TopLine="1"/>
<Filename Value="Units/MMLCore/window.pas"/>
<Caret Line="169" Column="16" TopLine="159"/>
</Position11>
<Position12>
<Filename Value="testunit.pas"/>
<Caret Line="50" Column="42" TopLine="35"/>
<Filename Value="Units/MMLCore/window.pas"/>
<Caret Line="170" Column="16" TopLine="159"/>
</Position12>
<Position13>
<Filename Value="testunit.pas"/>
<Caret Line="62" Column="32" TopLine="59"/>
<Filename Value="Units/MMLCore/window.pas"/>
<Caret Line="176" Column="14" TopLine="159"/>
</Position13>
<Position14>
<Filename Value="testunit.pas"/>
<Caret Line="57" Column="22" TopLine="41"/>
<Filename Value="Units/MMLCore/window.pas"/>
<Caret Line="180" Column="17" TopLine="171"/>
</Position14>
<Position15>
<Filename Value="../Compilertje/Units/CogatUnits/comptypes.pas"/>
<Caret Line="5" Column="109" TopLine="1"/>
<Filename Value="Units/MMLCore/window.pas"/>
<Caret Line="181" Column="16" TopLine="171"/>
</Position15>
<Position16>
<Filename Value="Units/MMLCore/window.pas"/>
<Caret Line="18" Column="27" TopLine="14"/>
<Caret Line="210" Column="16" TopLine="205"/>
</Position16>
<Position17>
<Filename Value="Units/MMLCore/window.pas"/>
<Caret Line="169" Column="16" TopLine="159"/>
<Caret Line="215" Column="10" TopLine="205"/>
</Position17>
<Position18>
<Filename Value="Units/MMLCore/window.pas"/>
<Caret Line="170" Column="16" TopLine="159"/>
<Caret Line="225" Column="19" TopLine="215"/>
</Position18>
<Position19>
<Filename Value="Units/MMLCore/window.pas"/>
<Caret Line="176" Column="14" TopLine="159"/>
<Caret Line="239" Column="19" TopLine="229"/>
</Position19>
<Position20>
<Filename Value="Units/MMLCore/window.pas"/>
<Caret Line="180" Column="17" TopLine="171"/>
<Caret Line="261" Column="17" TopLine="251"/>
</Position20>
<Position21>
<Filename Value="Units/MMLCore/window.pas"/>
<Caret Line="181" Column="16" TopLine="171"/>
<Filename Value="testunit.pas"/>
<Caret Line="68" Column="20" TopLine="53"/>
</Position21>
<Position22>
<Filename Value="Units/MMLCore/window.pas"/>
<Caret Line="210" Column="16" TopLine="205"/>
<Caret Line="329" Column="14" TopLine="298"/>
</Position22>
<Position23>
<Filename Value="Units/MMLCore/window.pas"/>
<Caret Line="215" Column="10" TopLine="205"/>
<Caret Line="10" Column="10" TopLine="1"/>
</Position23>
<Position24>
<Filename Value="Units/MMLCore/window.pas"/>
<Caret Line="225" Column="19" TopLine="215"/>
<Caret Line="367" Column="46" TopLine="353"/>
</Position24>
<Position25>
<Filename Value="Units/MMLCore/window.pas"/>
<Caret Line="239" Column="19" TopLine="229"/>
</Position25>
<Position26>
<Filename Value="Units/MMLCore/window.pas"/>
<Caret Line="261" Column="17" TopLine="251"/>
</Position26>
<Position27>
<Filename Value="testunit.pas"/>
<Caret Line="68" Column="20" TopLine="53"/>
</Position27>
<Position28>
<Filename Value="../Compilertje/Units/CogatUnits/compinput.pas"/>
<Caret Line="9" Column="20" TopLine="1"/>
</Position28>
<Position29>
<Filename Value="../Compilertje/Units/CogatUnits/compinput.pas"/>
<Caret Line="40" Column="52" TopLine="29"/>
</Position29>
</JumpHistory>
</ProjectOptions>
<CompilerOptions>