Skip to content

Commit

Permalink
Remove weird kamikaze code from pixel plotter
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiYueCommentary committed Jul 12, 2023
1 parent 80be73d commit 4aa08bb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions gxruntime/ddutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ void PixelFormat::setFormat(const DDPIXELFORMAT& pf) {
VirtualFree(plot_code, 0, MEM_RELEASE);
}

if(!(pf.dwFlags & DDPF_RGB)) {
memset(this, 0, sizeof(*this));
return;
}

plot_code = (char*)VirtualAlloc(0, 128, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE);
point_code = plot_code + 64;

Expand Down

0 comments on commit 4aa08bb

Please # to comment.