I'm not sure if this is the best way or place to fix this. Feel free to close/reject if there's a better way.
Without this change, I was unable to properly use the image function to draw a PIL image when a non-square display was set to 90 or 270 degree rotation. This change allows the passed image to match the effective resolution of the rotated display, allowing the entire image to be displayed (rotated appropriately).
I'm not sure if this is the best way or place to fix this. Feel free to close/reject if there's a better way.
Without this change, I was unable to properly use the image function to draw a PIL image when a non-square display was set to 90 or 270 degree rotation. This change allows the passed image to match the effective resolution of the rotated display, allowing the entire image to be displayed (rotated appropriately).