Ignore:
Timestamp:
06/20/15 00:05:17 (10 years ago)
Author:
epyon
Message:
  • code compiles cleanly on maximum warning level
File:
1 edited

Legend:

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

    r395 r406  
    1515{
    1616#if NV_PLATFORM == NV_WINDOWS
    17                 ::SwapBuffers( (HDC)m_hwnd );
     17                ::SwapBuffers( reinterpret_cast<HDC>( m_hwnd ) );
    1818#else
    1919        NV_ASSERT( false, "Native GL context currently only working on Windows!" );
     
    2626        {
    2727#if NV_PLATFORM == NV_WINDOWS
    28                         dynwglDeleteContext( (HGLRC)m_context->get_native_handle() );
     28                        dynwglDeleteContext( reinterpret_cast<HGLRC>( m_context->get_native_handle() ) );
    2929#endif
    3030        }
     
    4040        m_input = a_input;
    4141
    42         m_handle = (void*)handle;
     42        m_handle = handle;
    4343
    4444        // TODO: error checking
    45         HDC hdc = (HDC)dc;
     45        HDC hdc = reinterpret_cast<HDC>( dc );
    4646
    4747        const int wgl_attrib_list[] =
     
    103103//      m_height  = (uint16)rect.bottom;
    104104        m_handle  = wm->adopt_window( handle );
    105         m_hwnd    = ::GetDC( (HWND)handle );
     105        m_hwnd    = ::GetDC( reinterpret_cast<HWND>( handle ) );
    106106        m_context->set_viewport( nv::ivec4( 0, 0, m_width, m_height ) );
    107107#else
Note: See TracChangeset for help on using the changeset viewer.