Page 1 of 1

Inverted block lists and highlights [FIXED]

Posted: Oct 29th, '15, 12:04
by bromagosa
I've just noticed these are not rotated 180ยบ, but vertically inverted:

Image

This is only happening in Linux, I've tried it in Windows and Mac and it works okay.

Re: Inverted block lists and highlights

Posted: Oct 29th, '15, 13:06
by JohnM
Wow, that's quite an interesting bug! Different systems have different conventions for the Y origin and direction in bitmaps. We already have low-level code for both versions. It appears that some versions of Linux are flipped and others are not. I've been testing on Ubuntu, and my block highlights are not flipped -- which version are you using? What is your hardware? I'll try to figure out how to detect the actual Y direction.

Re: Inverted block lists and highlights

Posted: Oct 29th, '15, 14:11
by bromagosa
I'm using a 64b Debian machine, but it also happens in the 32b Xubuntu machines we use at the clubs.

Is there anything I can do to help?

Re: Inverted block lists and highlights

Posted: Oct 29th, '15, 15:01
by JohnM
What's your physical hardware (e.g. ThinkPad, Dell, etc.)? This may be related to the graphics hardware since it is reading the bitmap for the block stack out of a texture. I'm testing with Ubuntu 14.4 in a VMWare virtual machine running on Macbook Pro.

Thanks for the offer to help. I'll definitely want your help in testing once I have a fix.

I've thought of a way to detect whether the bitmap does or does not need to be flipped: GP can run an experiment on a tiny bitmap at startup and remember that result. That approach will be more reliable than trying to guess from the OS.

Re: Inverted block lists and highlights

Posted: Oct 29th, '15, 15:08
by bromagosa
That's really smart! How would that work? You use a 4 pixel bitmap and compare that one to a procedurally generated one?

I'm using a Lenovo PC, and my graphics chipset is "Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)".

Re: Inverted block lists and highlights

Posted: Oct 30th, '15, 11:58
by JohnM
Yep, exactly! Thanks for the hardware info.