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

@@ -3,7 +3,7 @@
namespace nall { namespace Encode {
struct BMP {
static auto create(const string& filename, const uint32_t* data, uint pitch, uint width, uint height, bool alpha) -> bool {
static auto create(const string& filename, const void* data, uint pitch, uint width, uint height, bool alpha) -> bool {
file fp{filename, file::mode::write};
if(!fp) return false;
@@ -35,7 +35,7 @@ struct BMP {
pitch >>= 2;
for(auto y : range(height)) {
const uint32_t* p = data + y * pitch;
auto p = (const uint32_t*)data + y * pitch;
for(auto x : range(width)) fp.writel(*p++, bytesPerPixel);
if(paddingLength) fp.writel(0, paddingLength);
}