mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-07 23:45:12 +00:00
fix some warnings
This commit is contained in:
parent
b1c48e66c9
commit
59c58aa3cf
72 changed files with 263 additions and 203 deletions
|
|
@ -7,6 +7,8 @@
|
|||
#include "Emu/Cell/lv2/sys_event.h"
|
||||
#include "Emu/IdManager.h"
|
||||
|
||||
#include <cmath>
|
||||
|
||||
LOG_CHANNEL(cellCamera);
|
||||
|
||||
template <>
|
||||
|
|
@ -326,7 +328,7 @@ u32 get_buffer_size_by_format(s32 format, s32 width, s32 height)
|
|||
break;
|
||||
}
|
||||
|
||||
return width * height * bytes_per_pixel;
|
||||
return ::narrow<u32>(static_cast<u64>(std::ceil(width * height * bytes_per_pixel)));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue