diff -r 9d501dc22f71 -r 1ce844170014 hedgewars/uStore.pas --- a/hedgewars/uStore.pas Fri May 07 09:57:12 2010 +0000 +++ b/hedgewars/uStore.pas Fri May 07 10:54:07 2010 +0000 @@ -81,6 +81,7 @@ procedure ShowWeaponTooltip(x, y: LongInt); procedure FreeWeaponTooltip; procedure Tint(r, g, b, a: Byte); inline; +procedure Tint(c: Longword); inline; implementation uses uMisc, uConsole, uLocale{$IFDEF IPHONEOS}, PascalExports{$ENDIF}; @@ -102,6 +103,11 @@ lastTint:= nc; end; +procedure Tint(c: Longword); inline; +begin +Tint(((c shr 16) and $FF), ((c shr 8) and $FF), (c and $FF), $FF); +end; + procedure DrawRoundRect(rect: PSDL_Rect; BorderColor, FillColor: Longword; Surface: PSDL_Surface; Clear: boolean); var r: TSDL_Rect; begin