Changeset 120 for trunk/src


Ignore:
Timestamp:
06/15/13 02:05:49 (12 years ago)
Author:
epyon
Message:
  • Nova now properly compiles and works under: mingw GCC 4.6 32-bit target mingw GCC 4.6 64-bit targte clang 3.2 32-bit target (64-bit clang doesn't work under windows)
  • warning removal will follow soon
Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gl/gl_device.cc

    r98 r120  
    7474        load_sdl_image_library();
    7575        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        }
    7681        image_data* data = new image_data( glm::ivec2( image->w, image->h ), image->format->BytesPerPixel, (nv::uint8*)image->pixels );
    7782        return data;
  • trunk/src/gui/gui_element.cc

    r99 r120  
    2727                }
    2828        }
     29        //((environment*)m_root)->update( this, elapsed );
    2930}
    3031
     
    9091        }
    9192
    92         m_absolute = m_relative + pabsolute.upper_left;
     93        m_absolute = m_relative + pabsolute.ul;
    9394
    9495        for ( object* o : *this )
  • trunk/src/library.cc

    r113 r120  
    115115#if NV_PLATFORM == NV_WINDOWS
    116116    // We do hate WinAPI for code like this, don't we?
    117     LPVOID buffer;
     117    LPTSTR buffer = NULL;
    118118    FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
    119119        NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR) &buffer, 0, NULL );
  • trunk/src/object.cc

    r107 r120  
    77#include "nv/object.hh"
    88
     9#include <algorithm>
    910#include "nv/root.hh"
    1011#include "nv/types.hh"
Note: See TracChangeset for help on using the changeset viewer.