VicontD2 Posted May 29, 2016 Share Posted May 29, 2016 Hello! Please help if you can. Strange colors in the Bg, Bg2, iwd (attached screenshot). Xiaomi Redmi Note 3 pro Android 5.1 GemRB 0.8.4 Log (attached file) GemRB.log Link to comment
lynx Posted May 29, 2016 Share Posted May 29, 2016 Huh, am I seeing right — all the green is gone? I'd try some other game or app that uses SDL2 to see if it also has a problem. Link to comment
VicontD2 Posted May 30, 2016 Author Share Posted May 30, 2016 I installed openTTD, if not confusing, it uses SDL2. Screenshot: Link to comment
VicontD2 Posted May 31, 2016 Author Share Posted May 31, 2016 Any ideas how to solve the problem with the colors? Link to comment
lynx Posted May 31, 2016 Share Posted May 31, 2016 Not many. We use a more recent sdl2 snapshot, so perhaps the bug is there. Nobody else reported anything like that, so I suspect some interplay between sdl and your particular graphics driver. Link to comment
VicontD2 Posted May 31, 2016 Author Share Posted May 31, 2016 Thanks for the reply. Cool game and damn phone((((((( Link to comment
SyntaxError Posted May 31, 2016 Share Posted May 31, 2016 I believe the answer is the 4th line of the log. You see we try to initialize with a pixel format of `RGBA8888`, but as you can see from the log we are getting back `ABGR8888`. I don't know if it is a bug in SDL, or if that is expected because that is the only hardware format your device supports. You can possibly work around it by building yourself. You have to fiddle with the masks at the top of SpriteRenderer.inl. BSHIFT should be 8, GSHIFT = 16, and RSHIFT = 24. That leaves alpha... we probably hardcoded that in a few places. It might not matter if only the hardware texture is in that format tho. Link to comment
VicontD2 Posted June 2, 2016 Author Share Posted June 2, 2016 Thanks for the tip, I'll try. If there is a positive result, then I 'll write about my attempts))) Link to comment
VicontD2 Posted June 3, 2016 Author Share Posted June 3, 2016 Heh, while I was trying to figure out the GemRB, came a new update to the phone and the problem resolved itself. Xiaomi Redmi Note 3 pro (MIUI Global 7.3.5.0) Thank you very much , for your answers and for Gemrb. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.