mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-16 13:04:22 +02:00
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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user