skewed background XP VirtualBox
Verfasst: Sonntag 12. Februar 2017, 21:17
When I run BotE under Windows XP in VirtualBox, some of the backgrounds -- the bits that look like the metal flashing around some displays -- are twisted 45 degrees clockwise. This did not happen when I ran directly from Windows 8.
I think it is related to the width of the graphics file being used: The left panel on the Galaxy screen looks fine. It uses a JPG file with a width which is divisible by 8. In the right panel on the Galaxy screen, and in the Build view of the System screen, the vertical strips of metal are tilted to the right, so they are now diagonal lines running from upper right to lower left. The JPG files for these two cases have widths which are not divisible by 8 (or even by 4; the width is 250).
I have not explored all screens within the game.
I tried replacing con_galaxyV3.jpg with the default.png I found in the root of the JAR file. The game then displays the image in the right panel of the Galaxy screen, with no twisting. On the other hand, it does choose to rotate the entire image clockwise 90 degrees -- maybe because default.png is wider than high to start with?
I suspect that at the point at which the image data is being copied to the screen, the number of bits on each line (including padding) is not the same as the number of bits the copying process is expecting. Since it looks like a 45 degree angle, I think it's just a one bit mismatch.
I don't know if the problem is in Windows XP, or in VirtualBox.
I think it is related to the width of the graphics file being used: The left panel on the Galaxy screen looks fine. It uses a JPG file with a width which is divisible by 8. In the right panel on the Galaxy screen, and in the Build view of the System screen, the vertical strips of metal are tilted to the right, so they are now diagonal lines running from upper right to lower left. The JPG files for these two cases have widths which are not divisible by 8 (or even by 4; the width is 250).
I have not explored all screens within the game.
I tried replacing con_galaxyV3.jpg with the default.png I found in the root of the JAR file. The game then displays the image in the right panel of the Galaxy screen, with no twisting. On the other hand, it does choose to rotate the entire image clockwise 90 degrees -- maybe because default.png is wider than high to start with?
I suspect that at the point at which the image data is being copied to the screen, the number of bits on each line (including padding) is not the same as the number of bits the copying process is expecting. Since it looks like a 45 degree angle, I think it's just a one bit mismatch.
I don't know if the problem is in Windows XP, or in VirtualBox.