mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-13 19:44:28 +00:00
loaders raw: fix a compiler warnings on Windows.
fix the invalid conversion from float to uint32_t. @Issue: https://github.com/Samsung/thorvg/issues/1229
This commit is contained in:
parent
53074d250f
commit
714470e618
1 changed files with 3 additions and 3 deletions
|
@ -78,9 +78,9 @@ unique_ptr<Surface> RawLoader::bitmap()
|
|||
|
||||
auto surface = static_cast<Surface*>(malloc(sizeof(Surface)));
|
||||
surface->buffer = (uint32_t*)(content);
|
||||
surface->stride = w;
|
||||
surface->w = w;
|
||||
surface->h = h;
|
||||
surface->stride = (uint32_t)w;
|
||||
surface->w = (uint32_t)w;
|
||||
surface->h = (uint32_t)h;
|
||||
surface->cs = SwCanvas::ARGB8888;
|
||||
|
||||
return unique_ptr<Surface>(surface);
|
||||
|
|
Loading…
Add table
Reference in a new issue