Update to v106r54 release.

byuu says:

Changes to hiro will break all but the GTK target. Not that it matters
much given that the only ruby drivers that function are all on BSD
anyway.

But if you are fortunate enough to be able to run this ... you'll find
lots of polishing improvements to the bsnes GUI. I posted some
screenshots on Twitter, if anyone were interested.
This commit is contained in:
Tim Allen
2018-08-04 21:44:00 +10:00
parent 5d135b556d
commit 41e127a07c
65 changed files with 1387 additions and 1093 deletions

View File

@@ -160,4 +160,14 @@ auto image::allocate(unsigned width, unsigned height, unsigned stride) -> uint8_
return data;
}
//assumes image and data are in the same format; pitch is adapted to image
auto image::allocate(const void* data, uint pitch, uint width, uint height) -> void {
allocate(width, height);
for(uint y : range(height)) {
auto input = (const uint8_t*)data + y * pitch;
auto output = (uint8_t*)_data + y * this->pitch();
memory::copy(output, input, width * stride());
}
}
}