mirror of
				https://github.com/webmproject/libwebp.git
				synced 2025-10-31 18:35:41 +01:00 
			
		
		
		
	cwebp/windows: use MAKE_REFGUID where appropriate
Change-Id: If595c75a833d37df86c16bf926da5f032015c68e
This commit is contained in:
		| @@ -176,10 +176,13 @@ static HRESULT ReadPictureWithWIC(const char* filename, | ||||
|   for (i = 0; | ||||
|        has_alpha && i < sizeof(alphaContainers)/sizeof(alphaContainers[0]); | ||||
|        ++i) { | ||||
|     if (IsEqualGUID(&srcContainerFormat, alphaContainers[i])) { | ||||
|     if (IsEqualGUID(MAKE_REFGUID(srcContainerFormat), | ||||
|                     MAKE_REFGUID(*alphaContainers[i]))) { | ||||
|       has_alpha = | ||||
|           IsEqualGUID(&srcPixelFormat, &GUID_WICPixelFormat32bppRGBA_) || | ||||
|           IsEqualGUID(&srcPixelFormat, &GUID_WICPixelFormat32bppBGRA_); | ||||
|           IsEqualGUID(MAKE_REFGUID(srcPixelFormat), | ||||
|                       MAKE_REFGUID(GUID_WICPixelFormat32bppRGBA_)) || | ||||
|           IsEqualGUID(MAKE_REFGUID(srcPixelFormat), | ||||
|                       MAKE_REFGUID(GUID_WICPixelFormat32bppBGRA_)); | ||||
|       break; | ||||
|     } | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user