From e510bee238a171a76ad488ac9362c827be83b037 Mon Sep 17 00:00:00 2001 From: johnangel Date: Tue, 9 Oct 2012 10:58:56 +0200 Subject: [PATCH] Displaying window size in Debug mode --- cocos2dx/platform/win32/CCEGLView.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cocos2dx/platform/win32/CCEGLView.cpp b/cocos2dx/platform/win32/CCEGLView.cpp index 70ebf3e8be..a677391b83 100644 --- a/cocos2dx/platform/win32/CCEGLView.cpp +++ b/cocos2dx/platform/win32/CCEGLView.cpp @@ -531,13 +531,14 @@ void CCEGLView::resize(int width, int height) m_windowTouchScaleX = frameSize.width / width; m_windowTouchScaleY = frameSize.height / height; -/* + #ifdef _DEBUG TCHAR buff[MAX_PATH + 1]; memset(buff, 0, sizeof(buff)); - swprintf_s(buff, MAX_PATH, L"%s - %0.0fx%0.0f - %0.2f", - kWindowClassName, frameSize.width, frameSize.height, 1.0f / m_windowTouchScaleX); + swprintf_s(buff, MAX_PATH, L"%S - %0.0fx%0.0f - %0.2f", + m_szViewName, frameSize.width, frameSize.height, 1.0f / m_windowTouchScaleX); + SetWindowText(m_hWnd, buff); -*/ + #endif } AdjustWindowRectEx(&rcClient, GetWindowLong(m_hWnd, GWL_STYLE), false, GetWindowLong(m_hWnd, GWL_EXSTYLE));