diff options
author | Oxore <oxore@protonmail.com> | 2022-10-20 01:10:34 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2022-10-20 01:10:34 +0300 |
commit | 911f72b2299ec654178af0b4e4fbbd3f870779b3 (patch) | |
tree | 35590d16197a05a79872118d2837cb3a9b5a9f21 /vdp.hpp | |
parent | eddd0a826b1720c26b0ac5df0269db3982bc8f35 (diff) |
Fix buffer overflow access, continue implementing graphics
Diffstat (limited to 'vdp.hpp')
-rw-r--r-- | vdp.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -15,7 +15,7 @@ class VDP { void Write(uint32_t offset, enum bitness, uint32_t value); bool Scanline(); // Returns true if display disabled or vblank happened void Reset(); - const uint8_t* GetRenderedBuffer() const { return _rendered_buffer; } + const uint32_t* GetRenderedBuffer() const { return _rendered_buffer; } const uint32_t base_address; @@ -112,5 +112,5 @@ class VDP { uint8_t _vram[kVRAMSize]{}; uint8_t _cram[kCRAMSize]{}; uint8_t _vsram[kVSRAMSize]{}; - uint8_t _rendered_buffer[render_buffer_size]{}; + uint32_t _rendered_buffer[kLinesPerScreenNTSC * render_width]{}; }; |