Bitmap images with odd-numbered widths are sometimes distorted #583

carstene1ns opened this Issue Sep 13, 2015 · 0 comments


None yet

3 participants


Broken Image(Chest+TrueForm.bmp) from "Mimicry Man" game:

in RPG_RT:

in Player:

The actual pixel rows in bitmap images need to start at 4 byte integers, so if the width and/or color count is odd, a padding needs to be inserted for each row.
Player currently ignores the padding and takes the additional zero bytes as transparent pixels and wraps the image around.

Additional information:

@carstene1ns carstene1ns was assigned by Ghabry Sep 13, 2015
@Ghabry Ghabry added this to the 0.4 milestone Sep 13, 2015
@Ghabry Ghabry added the Bitmaps label Sep 13, 2015
@carstene1ns carstene1ns added a commit to carstene1ns/easyrpg-player that referenced this issue Sep 13, 2015
@carstene1ns carstene1ns Skip padding bytes in bitmap reader
Fixes #583.
@fdelapena fdelapena modified the milestone: 0.3.2, 0.4 Sep 13, 2015
@Ghabry Ghabry closed this in #585 Sep 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment