Changeset 406 for trunk/src/sdl
- Timestamp:
- 06/20/15 00:05:17 (10 years ago)
- Location:
- trunk/src/sdl
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sdl/sdl_audio.cc
r399 r406 36 36 if ( info ) 37 37 { 38 int channel = Mix_PlayChannel(-1, (Mix_Chunk*)( info->sdl_sound), 0);38 int channel = Mix_PlayChannel(-1, static_cast<Mix_Chunk*>( info->sdl_sound ), 0); 39 39 if ( channel == -1 ) 40 40 { … … 43 43 else 44 44 { 45 Mix_Volume( channel, int( volume * 128.0f ) );45 Mix_Volume( channel, static_cast<int>( volume * 128.0f ) ); 46 46 if ( pan != 0.0f) 47 47 { 48 uint8 right = (uint8)( (pan + 1.0f) * 127.0f );48 uint8 right = static_cast<uint8>( (pan + 1.0f) * 127.0f ); 49 49 Mix_SetPanning( channel, 254-right, right ); 50 50 } … … 63 63 if ( info ) 64 64 { 65 int channel = Mix_PlayChannel(-1, (Mix_Chunk*)( info->sdl_sound), 0);65 int channel = Mix_PlayChannel(-1, static_cast<Mix_Chunk*>( info->sdl_sound ), 0); 66 66 if ( channel == -1 ) 67 67 { … … 123 123 if ( info ) 124 124 { 125 Mix_FreeChunk( (Mix_Chunk*)info->sdl_sound);125 Mix_FreeChunk( static_cast<Mix_Chunk*>( info->sdl_sound ) ); 126 126 m_sounds.destroy( a_sound ); 127 127 } -
trunk/src/sdl/sdl_input.cc
r395 r406 25 25 kevent.key.code = KEY_NONE; 26 26 27 uint32 ucode = (uint32)ke.keysym.sym;27 uint32 ucode = static_cast<uint32>( ke.keysym.sym ); 28 28 29 29 // if result is a typable char place it into the structure … … 36 36 int capslock = !!(ke.keysym.mod & KMOD_CAPS); 37 37 if ((shifted ^ capslock) != 0) { 38 kevent.key.ascii = (uchar8)SDL_toupper((int)ucode);38 kevent.key.ascii = static_cast<uchar8>( SDL_toupper( static_cast<int>( ucode ) ) ); 39 39 } 40 40 } -
trunk/src/sdl/sdl_window.cc
r395 r406 64 64 65 65 nv::load_gl_library(); 66 NV_LOG_INFO( "OpenGL Vendor : ", (const char*)glGetString(GL_VENDOR) );67 NV_LOG_INFO( "OpenGL Renderer : ", (const char*)glGetString( GL_RENDERER) );68 NV_LOG_INFO( "OpenGL Version : ", (const char*)glGetString( GL_VERSION) );69 NV_LOG_INFO( "OpenGL GLSL Version : ", (const char*)glGetString( GL_SHADING_LANGUAGE_VERSION) );66 NV_LOG_INFO( "OpenGL Vendor : ", reinterpret_cast<const char*>( glGetString(GL_VENDOR) ) ); 67 NV_LOG_INFO( "OpenGL Renderer : ", reinterpret_cast<const char*>( glGetString( GL_RENDERER ) ) ); 68 NV_LOG_INFO( "OpenGL Version : ", reinterpret_cast<const char*>( glGetString( GL_VERSION ) ) ); 69 NV_LOG_INFO( "OpenGL GLSL Version : ", reinterpret_cast<const char*>( glGetString( GL_SHADING_LANGUAGE_VERSION ) ) ); 70 70 SDL_GL_SetSwapInterval(1); 71 71
Note: See TracChangeset
for help on using the changeset viewer.