- Disable ability to resize window
authorunc0rr
Sun, 27 Jul 2008 21:58:46 +0000
changeset 1127 7e1b94a0fc1f
parent 1126 2acfe205a519
child 1128 9b3f42bf4eef
- Disable ability to resize window - Fix music volume coefficient
hedgewars/CCHandlers.inc
hedgewars/hwengine.dpr
hedgewars/uSound.pas
--- a/hedgewars/CCHandlers.inc	Sun Jul 27 21:51:35 2008 +0000
+++ b/hedgewars/CCHandlers.inc	Sun Jul 27 21:58:46 2008 +0000
@@ -455,7 +455,7 @@
 {$ENDIF}
 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
 
-flags:= SDL_OPENGL or SDL_RESIZABLE;
+flags:= SDL_OPENGL;// or SDL_RESIZABLE;
 if cFullScreen then
 	begin
 	flags:= flags or SDL_FULLSCREEN;
--- a/hedgewars/hwengine.dpr	Sun Jul 27 21:51:35 2008 +0000
+++ b/hedgewars/hwengine.dpr	Sun Jul 27 21:58:46 2008 +0000
@@ -156,7 +156,7 @@
 		SDL_KEYDOWN: if GameState = gsChat then KeyPressChat(event.key.keysym.unicode);
 		SDL_ACTIVEEVENT: if (event.active.state and SDL_APPINPUTFOCUS) <> 0 then
 				cHasFocus:= event.active.gain = 1;
-		SDL_VIDEORESIZE: Resize(max(event.resize.w, 600), max(event.resize.h, 450));
+		//SDL_VIDEORESIZE: Resize(max(event.resize.w, 600), max(event.resize.h, 450));
 		SDL_QUITEV: isTerminated:= true
 		end;
 CurrTime:= SDL_GetTicks;
--- a/hedgewars/uSound.pas	Sun Jul 27 21:51:35 2008 +0000
+++ b/hedgewars/uSound.pas	Sun Jul 27 21:58:46 2008 +0000
@@ -120,7 +120,7 @@
 if Volume < 0 then Volume:= 0;
 Mix_Volume(-1, Volume);
 Volume:= Mix_Volume(-1, -1);
-Mix_VolumeMusic(Volume * 3 div 8);
+Mix_VolumeMusic(Volume * 5 div 8);
 ChangeVolume:= Volume * 100 div MIX_MAX_VOLUME
 end;