Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-09-26 03:56:05 +0300
committerCampbell Barton <campbell@blender.org>2022-09-26 04:33:22 +0300
commit3961d3493be9c666850e71abe6102f72d3db9332 (patch)
tree83b903f8040f6384cbd4f702546db52a02bcd3dc /source/blender/blendthumb
parent3a7dc572dc9bbad35bdff3a3aeca8eab0ccb3fb7 (diff)
Cleanup: use 'u' prefixed integer types for brevity in C code
This also simplifies using function style casts when moving to C++.
Diffstat (limited to 'source/blender/blendthumb')
-rw-r--r--source/blender/blendthumb/src/blendthumb_win32.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blendthumb/src/blendthumb_win32.cc b/source/blender/blendthumb/src/blendthumb_win32.cc
index 4ba91955bd3..206309b6caf 100644
--- a/source/blender/blendthumb/src/blendthumb_win32.cc
+++ b/source/blender/blendthumb/src/blendthumb_win32.cc
@@ -172,10 +172,10 @@ IFACEMETHODIMP CBlendThumb::GetThumbnail(UINT cx, HBITMAP *phbmp, WTS_ALPHATYPE
*pdwAlpha = WTSAT_ARGB;
/* Scale up the thumbnail if required. */
- if ((unsigned)thumb.width < cx && (unsigned)thumb.height < cx) {
+ if (uint(thumb.width) < cx && uint(thumb.height) < cx) {
float scale = 1.0f / (std::max(thumb.width, thumb.height) / float(cx));
- LONG NewWidth = (LONG)(thumb.width * scale);
- LONG NewHeight = (LONG)(thumb.height * scale);
+ LONG NewWidth = LONG(thumb.width * scale);
+ LONG NewHeight = LONG(thumb.height * scale);
IWICImagingFactory *pImgFac;
hr = CoCreateInstance(