hedgewars/uStore.pas
changeset 3445 1ce844170014
parent 3407 dcc129c4352e
child 3463 23c50be687a9
--- 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