PSP: Fix wrong/dangerous C-style casts
This commit is contained in:
parent
334e0e7463
commit
e49e34eede
4 changed files with 10 additions and 10 deletions
|
@ -125,13 +125,13 @@ void Overlay::setSize(uint32 width, uint32 height) {
|
|||
|
||||
void Overlay::copyToArray(void *buf, int pitch) {
|
||||
DEBUG_ENTER_FUNC();
|
||||
_buffer.copyToArray((byte *)buf, pitch); // Change to bytes
|
||||
_buffer.copyToArray((byte *)buf, pitch);
|
||||
}
|
||||
|
||||
void Overlay::copyFromRect(const void *buf, int pitch, int x, int y, int w, int h) {
|
||||
DEBUG_ENTER_FUNC();
|
||||
|
||||
_buffer.copyFromRect((byte *)buf, pitch, x, y, w, h); // Change to bytes
|
||||
_buffer.copyFromRect((const byte *)buf, pitch, x, y, w, h);
|
||||
// debug
|
||||
//_buffer.print(0xFF);
|
||||
setDirty();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue