mirror of
https://github.com/Patoke/4JLibs.git
synced 2026-07-08 17:49:28 +00:00
chore: replace c style casts with static_cast to match the code conventions
This commit is contained in:
@@ -201,8 +201,8 @@ void Renderer::TextureData(int width, int height, void* data, int level, C4JRend
|
||||
level,
|
||||
NULL,
|
||||
data,
|
||||
(UINT)(width * 4),
|
||||
(UINT)(width * height * 4)
|
||||
static_cast<UINT>(width * 4),
|
||||
static_cast<UINT>(width * height * 4)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -228,8 +228,8 @@ void Renderer::TextureDataUpdate(int xoffset, int yoffset, int width, int height
|
||||
level,
|
||||
&box,
|
||||
data,
|
||||
(UINT)(width * 4),
|
||||
(UINT)(width * height * 4)
|
||||
static_cast<UINT>(width * 4),
|
||||
static_cast<UINT>(width * height * 4)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user