reprocessing icon indicating copy to clipboard operation
reprocessing copied to clipboard

Draw.subImage renders some images strangely in Native

Open danieljharvey opened this issue 7 years ago • 2 comments

Hey!

A+++ stuff on this library, have been having a really nice time with it and going to be putting my game up online soon. I was wondering if you had any thoughts / suggestions on this - have been using Draw.subImage to build a tiled board, but a couple of the images render super weird - it's always the same ones as well.

Web view (FINE!) screen shot 2018-06-24 at 08 30 56

Native view (MISSING BITS OF STUFF) screen shot 2018-06-24 at 08 31 10

(FYI - the background colour differences are part of the game, not an error - it's just the weird half tiles that are a bit strange).

For reference, said rendering code is here: https://github.com/danieljharvey/reason-egg/blob/master/game/src/effects/render.re

Any thoughts?

danieljharvey avatar Jun 24 '18 07:06 danieljharvey

Thanks for reporting this issue, we've had problems like this on and off but it's pretty much always just been off by a pixel or two. Having a tough time trying to understand what could be going on here but thanks for including the code and I'll try to give it a look and think it over some more when I get a chance.

Schmavery avatar Jun 25 '18 05:06 Schmavery

Are you on Mac? I can't reproduce the missing parts of those images on Ubuntu 18.04.

screenshot from 2018-07-03 10-52-14

zploskey avatar Jul 03 '18 17:07 zploskey