Branimir Karadžić 8 lat temu
rodzic
commit
b71736dfc1

+ 0 - 5
examples/common/entry/entry_windows.cpp

@@ -881,10 +881,6 @@ namespace entry
 			}
 			else
 			{
-#if defined(__MINGW32__)
-				rect  = m_rect;
-				style = m_style;
-#else
 				HMONITOR monitor = MonitorFromWindow(_hwnd, MONITOR_DEFAULTTONEAREST);
 				MONITORINFO mi;
 				mi.cbSize = sizeof(mi);
@@ -892,7 +888,6 @@ namespace entry
 				newrect = mi.rcMonitor;
 				rect = mi.rcMonitor;
 				m_aspectRatio = float(newrect.right  - newrect.left)/float(newrect.bottom - newrect.top);
-#endif // !defined(__MINGW__)
 			}
 
 			SetWindowLong(_hwnd, GWL_STYLE, style);

+ 1 - 1
examples/common/imgui/imgui.cpp

@@ -107,7 +107,7 @@ struct OcornutImguiContext
 			float ortho[16];
 			bx::mtxOrtho(ortho, 0.0f, width, height, 0.0f, 0.0f, 1000.0f, 0.0f, caps->homogeneousDepth);
 			bgfx::setViewTransform(m_viewId, NULL, ortho);
-			bgfx::setViewRect(m_viewId, 0, 0, width, height);
+			bgfx::setViewRect(m_viewId, 0, 0, uint16_t(width), uint16_t(height) );
 		}
 
 		// Render command lists