corrects a wrong binding
authorkoda
Sun, 12 Jul 2009 13:57:20 +0000
changeset 2258 3dd028604cfd
parent 2257 7eb31efcfb9b
child 2259 ca42efdce3ce
corrects a wrong binding
hedgewars/uConsts.pas
hedgewars/uSound.pas
hedgewars/uStore.pas
--- a/hedgewars/uConsts.pas	Sun Jul 12 13:51:29 2009 +0000
+++ b/hedgewars/uConsts.pas	Sun Jul 12 13:57:20 2009 +0000
@@ -24,7 +24,7 @@
 {$IFDEF GLES11}
 	gles11,
 {$ELSE}
-    GL,
+	GL,
 {$ENDIF}
 	uLocale;
 
@@ -164,8 +164,8 @@
     ifTransparent = $00000004; // image uses transparent pixels (color keying)
     ifIgnoreCaps  = $00000008; // ignore hardware capabilities when loading (i.e. image will not be drawn using OpenGL)
     ifLowRes      = $00000010; // try loading a low resolution image when it is critical
-const
-	cMaxPower     = 1500;
+    
+const	cMaxPower     = 1500;
 	cMaxAngle     = 2048;
 	cPowerDivisor = 1500;
 
@@ -199,7 +199,7 @@
     COLOR_LAND           = $FFFF;  // white
     COLOR_INDESTRUCTIBLE = $88FF;  // red
 
-    //some opengl headers do not have these macros (unused)
+    //some opengl headers do not have these macros
     GL_BGR  = $80E0;
     GL_BGRA = $80E1;
     GL_CLAMP_TO_EDGE = $812F;
--- a/hedgewars/uSound.pas	Sun Jul 12 13:51:29 2009 +0000
+++ b/hedgewars/uSound.pas	Sun Jul 12 13:57:20 2009 +0000
@@ -57,7 +57,7 @@
 function  AskForVoicepack(name: shortstring): Pointer;
 
 {*remember: LongInt = 32bit; integer = 16bit; byte = 8bit*}
-function openal_init		(memsize: LongInt)			: boolean; cdecl; external OpenALBridge;
+function openal_init		(memsize: LongInt)                      : boolean; cdecl; external OpenALBridge;
 function openal_close							: boolean; cdecl; external OpenALBridge;
 function openal_loadfile	(const filename: PChar)			: LongInt; cdecl; external OpenALBridge;
 function openal_toggleloop	(index: LongInt)			: boolean; cdecl; external OpenALBridge;
--- a/hedgewars/uStore.pas	Sun Jul 12 13:51:29 2009 +0000
+++ b/hedgewars/uStore.pas	Sun Jul 12 13:57:20 2009 +0000
@@ -980,6 +980,9 @@
 glScalef(f / cScreenWidth, -f / cScreenHeight, 1.0);
 //glTranslatef(-cScreenWidth / 2, -cScreenHeight / 2, 0);
 glTranslatef(0, -cScreenHeight / 2, 0);
+
+// glTranslatex(320, 0, 0);
+// glRotatef(90.0, 0.0, 0.0, 1.0);
 end;
 
 ////////////////////////////////////////////////////////////////////////////////