chore: replace c style casts with static_cast to match the code conventions
This commit is contained in:
1 parent
32344c11b1
commit
74dd43e6f6
1 file changed
+4
-4
@@ -201,8 +201,8 @@ void Renderer::TextureData(int width, int height, void* data, int level, C4JRend
|
|||||||
level,
|
level,
|
||||||
NULL,
|
NULL,
|
||||||
data,
|
data,
|
||||||
(UINT)(width * 4),
|
static_cast<UINT>(width * 4),
|
||||||
(UINT)(width * height * 4)
|
static_cast<UINT>(width * height * 4)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -228,8 +228,8 @@ void Renderer::TextureDataUpdate(int xoffset, int yoffset, int width, int height
|
|||||||
level,
|
level,
|
||||||
&box,
|
&box,
|
||||||
data,
|
data,
|
||||||
(UINT)(width * 4),
|
static_cast<UINT>(width * 4),
|
||||||
(UINT)(width * height * 4)
|
static_cast<UINT>(width * height * 4)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user