- Timestamp:
- 05/15/15 12:52:52 (10 years ago)
- Location:
- trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/engine/resource_system.cc
r361 r364 12 12 { 13 13 m_lua = a_lua_state; 14 std::string constructor_name( get_resource_name() ); 15 constructor_name = "register_"+constructor_name; 16 int correct = 0; 17 lua::register_storage( m_lua, get_storage_name(), constructor_name ); 14 lua::register_storage( m_lua, get_storage_name(), "register_" + get_resource_name().to_string() ); 18 15 } 19 16 -
trunk/src/gl/gl_context.cc
r342 r364 734 734 if ( slots[i] > OUTPUT_7 ) buffers[i] = 0; 735 735 } 736 glDrawBuffers( count, buffers );736 glDrawBuffers( (GLsizei)count, buffers ); 737 737 } 738 738 -
trunk/src/gl/gl_device.cc
r361 r364 56 56 { 57 57 load_sdl_image_library(); 58 SDL_Surface* image = IMG_LoadTyped_RW( SDL_RWFromMem( (void*)data, size ), 1, "tga" );58 SDL_Surface* image = IMG_LoadTyped_RW( SDL_RWFromMem( (void*)data, (int)size ), 1, "png" ); 59 59 if ( !image ) 60 60 { … … 402 402 403 403 const char* pc = shader_code.data(); 404 int l = shader_code.length();404 int l = (int)shader_code.length(); 405 405 406 406 glShaderSource( glid, 1, &pc, &l ); -
trunk/src/gui/gui_ascii_renderer.cc
r356 r364 80 80 for ( int x = 0; x < abs.get_width(); ++x ) 81 81 { 82 m_terminal->print( position( abs.ul.y, abs.ul.x + x ), er->border_color, er->border_chars[0] );83 m_terminal->print( position( abs.lr.y, abs.ul.x + x ), er->border_color, er->border_chars[1] );82 m_terminal->print( position( abs.ul.y, abs.ul.x + x ), er->border_color, (unsigned char)er->border_chars[0] ); 83 m_terminal->print( position( abs.lr.y, abs.ul.x + x ), er->border_color, (unsigned char)er->border_chars[1] ); 84 84 } 85 85 86 86 for ( int y = 0; y < abs.get_height(); ++y ) 87 87 { 88 m_terminal->print( position( abs.ul.y + y, abs.ul.x ), er->border_color, er->border_chars[2] );89 m_terminal->print( position( abs.ul.y + y, abs.lr.x ), er->border_color, er->border_chars[3] );88 m_terminal->print( position( abs.ul.y + y, abs.ul.x ), er->border_color, (unsigned char)er->border_chars[2] ); 89 m_terminal->print( position( abs.ul.y + y, abs.lr.x ), er->border_color, (unsigned char)er->border_chars[3] ); 90 90 } 91 91 92 m_terminal->print( abs.ul, er->border_color, er->border_chars[4] );93 m_terminal->print( abs.ur(), er->border_color, er->border_chars[5] );94 m_terminal->print( abs.ll(), er->border_color, er->border_chars[6] );95 m_terminal->print( abs.lr, er->border_color, er->border_chars[7] );92 m_terminal->print( abs.ul, er->border_color, (unsigned char)er->border_chars[4] ); 93 m_terminal->print( abs.ur(), er->border_color, (unsigned char)er->border_chars[5] ); 94 m_terminal->print( abs.ll(), er->border_color, (unsigned char)er->border_chars[6] ); 95 m_terminal->print( abs.lr, er->border_color, (unsigned char)er->border_chars[7] ); 96 96 } 97 97 if ( !e->m_text.empty() ) … … 100 100 for ( char c : e->m_text ) 101 101 { 102 m_terminal->print( p, er->text_color, c );102 m_terminal->print( p, er->text_color, (unsigned char)c ); 103 103 ++p.x; 104 104 } … … 111 111 } 112 112 113 void nv::gui::ascii_renderer::on_hover_change( element* e, bool hover)113 void nv::gui::ascii_renderer::on_hover_change( element* e, bool /*hover*/ ) 114 114 { 115 115 // TODO: FIX 116 int fix_me; 116 117 NV_LOG( nv::LOG_DEBUG, "on_hover_change" ); 117 118 e->m_flags[DIRTY] = true; 118 119 } 119 120 120 void nv::gui::ascii_renderer::on_select_change( element* e, bool select)121 void nv::gui::ascii_renderer::on_select_change( element* e, bool /*select*/ ) 121 122 { 122 123 // TODO: FIX 124 int fix_me; 123 125 NV_LOG( nv::LOG_DEBUG, "on_select_change" ); 124 126 e->m_flags[DIRTY] = true; -
trunk/src/gui/gui_gfx_renderer.cc
r354 r364 266 266 vec2 tsize32 = ( image->t2 - image->t1 ) * ( 2.0f / 3.0f ); 267 267 vec2 tsizex = vec2( tsize.x, 0.0f ); 268 vec2 tsizey = vec2( 0.0f, tsize.y );268 //vec2 tsizey = vec2( 0.0f, tsize.y ); 269 269 vec2 tsize3x = vec2( tsize3.x, 0.0f ); 270 270 vec2 tsize3y = vec2( 0.0f, tsize3.y ); … … 343 343 } 344 344 345 void gfx_renderer::on_hover_change( element* e, bool hover)345 void gfx_renderer::on_hover_change( element* e, bool /*hover*/ ) 346 346 { 347 347 // TODO: FIX 348 int fix_me; 348 349 NV_LOG( nv::LOG_DEBUG, "on_hover_change" ); 349 350 e->m_flags[DIRTY] = true; 350 351 } 351 352 352 void gfx_renderer::on_select_change( element* e, bool select)353 void gfx_renderer::on_select_change( element* e, bool /*select*/ ) 353 354 { 354 355 // TODO: FIX 356 int fix_me; 355 357 NV_LOG( nv::LOG_DEBUG, "on_select_change" ); 356 358 e->m_flags[DIRTY] = true; -
trunk/src/lua/lua_handle.cc
r335 r364 15 15 NV_LUA_STACK_ASSERT( L, +1 ); 16 16 lua_rawgeti( L, LUA_REGISTRYINDEX, pseudoindex ); // table 17 lua_rawgeti( L, -1, index );// table, entry17 lua_rawgeti( L, -1, (int)index ); // table, entry 18 18 if ( !lua_istable( L, -1 ) ) 19 19 { … … 57 57 lua_rawgeti( L, LUA_REGISTRYINDEX, pseudoindex ); 58 58 lua_insert( L, -2 ); 59 lua_rawseti( L, -2, index );59 lua_rawseti( L, -2, (int)index ); 60 60 lua_pop( L, 1 ); 61 61 } … … 66 66 lua_rawgeti( L, LUA_REGISTRYINDEX, pseudoindex ); // table 67 67 lua_pushinteger( L, 0 ); 68 lua_rawseti( L, -2, index );68 lua_rawseti( L, -2, (int)index ); 69 69 lua_pop( L, 1 ); 70 70 }
Note: See TracChangeset
for help on using the changeset viewer.