mirror of
https://github.com/ENSL/NS.git
synced 2024-11-13 00:24:38 +00:00
small several bugfix (linux
This commit is contained in:
parent
32506d863b
commit
00610590d0
4 changed files with 6 additions and 6 deletions
Binary file not shown.
|
@ -266,7 +266,7 @@ void CHudSayText :: SayTextPrint( const char *pszBuf, int iBufSize, int clientIn
|
||||||
gHUD.PlayHUDSound("misc/talk.wav", 1);
|
gHUD.PlayHUDSound("misc/talk.wav", 1);
|
||||||
|
|
||||||
Y_START = ScreenHeight()*.7f;
|
Y_START = ScreenHeight()*.7f;
|
||||||
/* @linux no chat panel
|
|
||||||
ChatPanel* theChatPanel = gViewPort->GetChatPanel();
|
ChatPanel* theChatPanel = gViewPort->GetChatPanel();
|
||||||
|
|
||||||
if (theChatPanel != NULL)
|
if (theChatPanel != NULL)
|
||||||
|
@ -284,7 +284,7 @@ void CHudSayText :: SayTextPrint( const char *pszBuf, int iBufSize, int clientIn
|
||||||
//KGP: then move the viewport
|
//KGP: then move the viewport
|
||||||
Y_START = theY + theHeight + 5;
|
Y_START = theY + theHeight + 5;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CHudSayText :: EnsureTextFitsInOneLineAndWrapIfHaveTo( int line )
|
void CHudSayText :: EnsureTextFitsInOneLineAndWrapIfHaveTo( int line )
|
||||||
|
|
|
@ -212,7 +212,7 @@ void ChatPanel::KeyEvent()
|
||||||
{
|
{
|
||||||
const Uint8 *state = SDL_GetKeyboardState(NULL);
|
const Uint8 *state = SDL_GetKeyboardState(NULL);
|
||||||
|
|
||||||
if (SDL_PollEvent(&event)) {
|
while (SDL_PollEvent(&event)) {
|
||||||
|
|
||||||
if (event.type == SDL_TEXTINPUT)
|
if (event.type == SDL_TEXTINPUT)
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,9 +11,9 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
//@2014
|
//@2014
|
||||||
|
|
||||||
#include <SDL2\SDL_events.h> //#define VK_ESCAPE 0x1B
|
#include <SDL2/SDL_events.h> //#define VK_ESCAPE 0x1B
|
||||||
#include <SDL2\SDL_keyboard.h> //#define VK_RETURN 0x0D
|
#include <SDL2/SDL_keyboard.h> //#define VK_RETURN 0x0D
|
||||||
#include <SDL2\SDL_keycode.h> //#define VK_CAPITAL 0x14
|
#include <SDL2/SDL_keycode.h> //#define VK_CAPITAL 0x14
|
||||||
//#define VK_LCONTROL 0xA2
|
//#define VK_LCONTROL 0xA2
|
||||||
//#define VK_RCONTROL 0xA3
|
//#define VK_RCONTROL 0xA3
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue