mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-10-31 04:31:57 +00:00 
			
		
		
		
	[host] inline the implementation of min()
This commit is contained in:
		| @@ -401,8 +401,9 @@ GrabStatus DXGI::GrabFrame(FrameInfo & frame) | ||||
|   frame.width   = desc.Width; | ||||
|   frame.height  = desc.Height; | ||||
|   frame.stride  = rect.Pitch / 4; | ||||
|    | ||||
|   memcpySSE(frame.buffer, rect.pBits, min(frame.bufferSize, m_height * rect.Pitch)); | ||||
|  | ||||
|   unsigned int size = m_height * rect.Pitch; | ||||
|   memcpySSE(frame.buffer, rect.pBits, size < frame.bufferSize ? size : frame.bufferSize); | ||||
|  | ||||
|   status = surface->Unmap(); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 arcnmx
					arcnmx