[Wgui-cvs] wgui/src wg_application.cpp,1.53,1.54 wg_scrollbar.cpp,1.42,1.43 wg_window.cpp,1.52,1.53
Status: Beta
Brought to you by:
greenwire
|
From: Rob W. <gre...@us...> - 2004-08-03 15:03:36
|
Update of /cvsroot/wgui/wgui/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3530/src Modified Files: wg_application.cpp wg_scrollbar.cpp wg_window.cpp Log Message: Fixed resizing bug in TestApp1 Index: wg_window.cpp =================================================================== RCS file: /cvsroot/wgui/wgui/src/wg_window.cpp,v retrieving revision 1.52 retrieving revision 1.53 diff -C2 -d -r1.52 -r1.53 *** wg_window.cpp 19 Jul 2004 21:49:58 -0000 1.52 --- wg_window.cpp 3 Aug 2004 15:03:26 -0000 1.53 *************** *** 83,86 **** --- 83,90 ---- m_pSDLSurface = SDL_CreateRGBSurface(SDL_SWSURFACE, m_WindowRect.Width(), m_WindowRect.Height(), 32, 0x000000FF, 0x0000FF00, 0x00FF0000, /*0xFF000000*/ 0); + if (!m_pSDLSurface) + { + CApplication::Instance()->GetApplicationLog().AddLogEntry(std::string("SDL Unable To Create Surface: ") + SDL_GetError(), APP_LOG_ERROR); + } m_ClientRect = CRect(stdex::safe_static_cast<int>(m_ClientRect.Left() * dHorizontalScale), stdex::safe_static_cast<int>(m_ClientRect.Top() * dVerticalScale), stdex::safe_static_cast<int>(m_ClientRect.Right() * dHorizontalScale), stdex::safe_static_cast<int>(m_ClientRect.Bottom() * dVerticalScale)); Index: wg_scrollbar.cpp =================================================================== RCS file: /cvsroot/wgui/wgui/src/wg_scrollbar.cpp,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -d -r1.42 -r1.43 *** wg_scrollbar.cpp 21 Jul 2004 18:38:23 -0000 1.42 --- wg_scrollbar.cpp 3 Aug 2004 15:03:26 -0000 1.43 *************** *** 111,115 **** CWindow::SetWindowRect(WindowRect); // Resposition the thumb rect and the button controls - SetValue(m_Value); switch (m_ScrollBarType) { --- 111,114 ---- *************** *** 132,135 **** --- 131,135 ---- break; } + SetValue(m_Value); } Index: wg_application.cpp =================================================================== RCS file: /cvsroot/wgui/wgui/src/wg_application.cpp,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** wg_application.cpp 16 Jul 2004 16:41:36 -0000 1.53 --- wg_application.cpp 3 Aug 2004 15:03:26 -0000 1.54 *************** *** 301,304 **** --- 301,305 ---- { m_AppLog.AddLogEntry("Exception (wGui) : " + e.std_what(), APP_LOG_CRITICAL); + m_AppLog.AddLogEntry(std::string("SDL Last Error = ") + SDL_GetError(), APP_LOG_ERROR); if (!m_bHandleExceptionsInternally) { *************** *** 311,314 **** --- 312,316 ---- { m_AppLog.AddLogEntry("Exception (std) : " + std::string(e.what()), APP_LOG_CRITICAL); + m_AppLog.AddLogEntry(std::string("SDL Last Error = ") + SDL_GetError(), APP_LOG_ERROR); if (!m_bHandleExceptionsInternally) { *************** *** 321,324 **** --- 323,327 ---- { m_AppLog.AddLogEntry("Exception (non std)", APP_LOG_CRITICAL); + m_AppLog.AddLogEntry(std::string("SDL Last Error = ") + SDL_GetError(), APP_LOG_ERROR); if (!m_bHandleExceptionsInternally) { |