use ptrdiff_t to represent pitch
This commit is contained in:
parent
6020542182
commit
40167579bb
|
@ -21,6 +21,7 @@
|
|||
|
||||
#include "gbint.h"
|
||||
#include "loadres.h"
|
||||
#include <cstddef>
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
#include <cstdint>
|
||||
|
@ -88,7 +89,7 @@ public:
|
|||
*/
|
||||
long runFor(gambatte::uint_least32_t *soundBuf, unsigned &samples);
|
||||
|
||||
void blitTo(gambatte::uint_least32_t *videoBuf, int pitch);
|
||||
void blitTo(gambatte::uint_least32_t *videoBuf, std::ptrdiff_t pitch);
|
||||
|
||||
void setLayers(unsigned mask);
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ void GB::setLayers(unsigned mask)
|
|||
p_->cpu.setLayers(mask);
|
||||
}
|
||||
|
||||
void GB::blitTo(gambatte::uint_least32_t *videoBuf, int pitch)
|
||||
void GB::blitTo(gambatte::uint_least32_t *videoBuf, std::ptrdiff_t pitch)
|
||||
{
|
||||
gambatte::uint_least32_t *src = p_->vbuff;
|
||||
gambatte::uint_least32_t *dst = videoBuf;
|
||||
|
|
|
@ -333,7 +333,7 @@ public:
|
|||
void setSoundBuffer(uint_least32_t *const buf) { sound.setBuffer(buf); }
|
||||
unsigned fillSoundBuffer(unsigned long cc);
|
||||
|
||||
void setVideoBuffer(uint_least32_t *const videoBuf, const int pitch) {
|
||||
void setVideoBuffer(uint_least32_t *const videoBuf, const std::ptrdiff_t pitch) {
|
||||
display.setVideoBuffer(videoBuf, pitch);
|
||||
}
|
||||
|
||||
|
|
|
@ -750,7 +750,7 @@ void LCD::update(const unsigned long cycleCounter) {
|
|||
ppu.update(cycleCounter);
|
||||
}
|
||||
|
||||
void LCD::setVideoBuffer(uint_least32_t *const videoBuf, const int pitch) {
|
||||
void LCD::setVideoBuffer(uint_least32_t *const videoBuf, const std::ptrdiff_t pitch) {
|
||||
ppu.setFrameBuf(videoBuf, pitch);
|
||||
}
|
||||
|
||||
|
|
|
@ -127,7 +127,7 @@ public:
|
|||
void loadState(const SaveState &state, const unsigned char *oamram);
|
||||
void setDmgPaletteColor(unsigned palNum, unsigned colorNum, unsigned long rgb32);
|
||||
void setCgbPalette(unsigned *lut);
|
||||
void setVideoBuffer(uint_least32_t *videoBuf, int pitch);
|
||||
void setVideoBuffer(uint_least32_t *videoBuf, std::ptrdiff_t pitch);
|
||||
void setLayers(unsigned mask) { ppu.setLayers(mask); }
|
||||
void setCgb(bool cgb);
|
||||
void copyCgbPalettesToDmg();
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue