equal
deleted
inserted
replaced
389 |
389 |
390 function LoadImage(const filename: shortstring; imageFlags: LongInt): PSDL_Surface; |
390 function LoadImage(const filename: shortstring; imageFlags: LongInt): PSDL_Surface; |
391 var tmpsurf: PSDL_Surface; |
391 var tmpsurf: PSDL_Surface; |
392 s: shortstring; |
392 s: shortstring; |
393 begin |
393 begin |
394 WriteToConsole(msgLoading + filename + '.png [flags: ' + inttostr(imageFlags) + ']'); |
394 WriteToConsole(msgLoading + filename + '.png [flags: ' + inttostr(imageFlags) + '] '); |
395 |
395 |
396 s:= filename + '.png'; |
396 s:= filename + '.png'; |
397 tmpsurf:= IMG_Load(Str2PChar(s)); |
397 tmpsurf:= IMG_Load(Str2PChar(s)); |
398 |
398 |
399 if tmpsurf = nil then |
399 if tmpsurf = nil then |