I'm going crazy,
I think to have fixed all my toolchain, installed from scratch latest vesion of devcitpro and python (3.4), and built again ctulib (latest version) and all the libs by xerpi (with the portlibs dependencies).
Now I don't have problems compiling anymore, but the drawing textures with sf2dlib has a strange behavior. The images flickers: the drawing stops before ending the texture and if there are other textures in the command buffer they are not processed.
The problem seems to be time related, the bigger the texture, the less the part drawn.
I tryed using a small texture (about 160*102, the screen of a lynx emulator
), it's drawn only about half, but after a variable time (from 1 to 5 minutes) the situation get stable and then drawing bigger imeges works fine. This doesn't happen using bigger images.
If after the the drewing is stable I exit to HB Channel and restart the program, the problem starts again.
With a cia file it's the same.
I tested several codes exaple, the sf2dlib exaple compiled unchanged too. Attached the compiled 3dsx (used dummy red icon) if you want to give a look to this phenomenon.
It's very strange and I'm not able of fixing it by code.