mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[host] mingw-w64 compile fixes (#44)
* [host] rename min() to LG_MIN() * [host] format string type fixes, %Ix doesn't exist in mingw * [host] DXGI minor fixes * [host] mingw lacks media foundation api headers and QISearch
This commit is contained in:
@@ -274,8 +274,8 @@ enum GrabStatus NvFBC::GrabFrame(struct FrameInfo & frame)
|
||||
}
|
||||
|
||||
// use the smaller or the two dimensions provided just to be sure we don't overflow the buffer
|
||||
const unsigned int realHeight = min(m_grabInfo.dwHeight, screenHeight);
|
||||
const unsigned int realWidth = min(m_grabInfo.dwWidth , screenWidth );
|
||||
const unsigned int realHeight = LG_MIN(m_grabInfo.dwHeight, screenHeight);
|
||||
const unsigned int realWidth = LG_MIN(m_grabInfo.dwWidth , screenWidth );
|
||||
|
||||
// calculate the new data width and offset to the start of the data
|
||||
dataWidth = realWidth * 4;
|
||||
|
Reference in New Issue
Block a user