ide: load splash logo from FPC resource

git-svn-id: trunk@42976 -
This commit is contained in:
paul 2013-09-27 08:51:41 +00:00
parent 5cffde6483
commit d0e5148925
4 changed files with 4 additions and 5 deletions

1
.gitattributes vendored
View File

@ -5747,6 +5747,7 @@ images/sourceeditor/tsynsyncroedit.png -text
images/splash_logo.bat svneol=native#text/x-msdos-program
images/splash_logo.lrs svneol=native#text/pascal
images/splash_logo.png -text svneol=unset#image/png
images/splash_logo.res -text
images/splash_logo.xpm -text svneol=native#image/x-xpixmap
images/splash_source/cheetah.jpg -text svneol=unset#image/jpeg
images/splash_source/paw.png -text svneol=unset#image/png

View File

@ -62,6 +62,7 @@ var
implementation
{$R *.lfm}
{$R ../images/splash_logo.res}
const
VersionPos: TPoint = (X:0; Y:281);
@ -86,7 +87,7 @@ constructor TSplashForm.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
Image.Picture.LoadFromLazarusResource('splash_logo');
Image.Picture.LoadFromResourceName(hInstance, 'splash_logo', TPortableNetworkGraphic);
Application.AddOnIdleHandler(@ApplicationOnIdle);
end;
@ -117,7 +118,4 @@ begin
Image.Canvas.TextRect(ATextRect, VersionPos.X, VersionPos.Y, LazarusVersionStr, VersionStyle);
end;
initialization
{$I ../images/splash_logo.lrs}
end.

View File

@ -1 +1 @@
..\tools\lazres splash_logo.lrs splash_logo.png
..\tools\lazres splash_logo.rc splash_logo.png

BIN
images/splash_logo.res Normal file

Binary file not shown.