equal
deleted
inserted
replaced
371 procedure ReadThemeInfo(var ThemeObjects: TThemeObjects; var SprayObjects: TSprayObjects); |
371 procedure ReadThemeInfo(var ThemeObjects: TThemeObjects; var SprayObjects: TSprayObjects); |
372 var s, key: shortstring; |
372 var s, key: shortstring; |
373 f: textfile; |
373 f: textfile; |
374 i: LongInt; |
374 i: LongInt; |
375 ii, t: Longword; |
375 ii, t: Longword; |
376 c1, c2: TSDL_Color; |
376 c2: TSDL_Color; |
377 |
377 |
378 procedure CheckRect(Width, Height, x, y, w, h: LongWord); |
378 procedure CheckRect(Width, Height, x, y, w, h: LongWord); |
379 begin |
379 begin |
380 if (x + w > Width) then OutError('Object''s rectangle exceeds image: x + w (' + inttostr(x) + ' + ' + inttostr(w) + ') > Width (' + inttostr(Width) + ')', true); |
380 if (x + w > Width) then OutError('Object''s rectangle exceeds image: x + w (' + inttostr(x) + ' + ' + inttostr(w) + ') > Width (' + inttostr(Width) + ')', true); |
381 if (y + h > Height) then OutError('Object''s rectangle exceeds image: y + h (' + inttostr(y) + ' + ' + inttostr(h) + ') > Height (' + inttostr(Height) + ')', true); |
381 if (y + h > Height) then OutError('Object''s rectangle exceeds image: y + h (' + inttostr(y) + ' + ' + inttostr(h) + ') > Height (' + inttostr(Height) + ')', true); |