- Timestamp:
- 06/15/13 02:05:49 (12 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gl/gl_device.cc
r98 r120 74 74 load_sdl_image_library(); 75 75 SDL_Surface* image = IMG_Load( filename.c_str() ); 76 if (!image) 77 { 78 NV_LOG( LOG_ERROR, "Image file " << filename.c_str() << " not found!" ); 79 return nullptr; 80 } 76 81 image_data* data = new image_data( glm::ivec2( image->w, image->h ), image->format->BytesPerPixel, (nv::uint8*)image->pixels ); 77 82 return data; -
trunk/src/gui/gui_element.cc
r99 r120 27 27 } 28 28 } 29 //((environment*)m_root)->update( this, elapsed ); 29 30 } 30 31 … … 90 91 } 91 92 92 m_absolute = m_relative + pabsolute.u pper_left;93 m_absolute = m_relative + pabsolute.ul; 93 94 94 95 for ( object* o : *this ) -
trunk/src/library.cc
r113 r120 115 115 #if NV_PLATFORM == NV_WINDOWS 116 116 // We do hate WinAPI for code like this, don't we? 117 LP VOID buffer;117 LPTSTR buffer = NULL; 118 118 FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, 119 119 NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR) &buffer, 0, NULL ); -
trunk/src/object.cc
r107 r120 7 7 #include "nv/object.hh" 8 8 9 #include <algorithm> 9 10 #include "nv/root.hh" 10 11 #include "nv/types.hh"
Note: See TracChangeset
for help on using the changeset viewer.