Skip to content

Commit

Permalink
Added some missing type casts
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkwhoffmann committed Dec 29, 2024
1 parent e722936 commit 014689c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Emulator/Components/Denise/DeniseDebugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ DeniseDebugger::hsyncHandler(isize vpos)

if (LINE_DEBUG == vpos) {

u32 *ptr = pixelEngine.workingPtr(vpos);
auto *ptr = pixelEngine.workingPtr(vpos);

for (Pixel i = 0; i < HPIXELS; i++) {
ptr[i] = (i & 1) ? 0xFF0000FF : 0xFFFFFFFF;
Expand Down
4 changes: 2 additions & 2 deletions Emulator/VAmiga.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ VideoPortAPI::unlockTexture()
const u32 *
VideoPortAPI::getTexture() const
{
return emu->getTexture().pixels.ptr;
return (u32 *)emu->getTexture().pixels.ptr;
}

const u32 *
Expand All @@ -838,7 +838,7 @@ VideoPortAPI::getTexture(isize *nr, bool *lof, bool *prevlof) const
*lof = frameBuffer.lof;
*prevlof = frameBuffer.prevlof;

return frameBuffer.pixels.ptr;
return (u32 *)frameBuffer.pixels.ptr;
}


Expand Down

0 comments on commit 014689c

Please sign in to comment.