Problem with D3DXCreateTextureFromFileEx
Here''s my code:
D3DXCreateTextureFromFileEx(dev, "highlight.bmp", 0, 0, 0, 0, D3DFMT_A8R8G8B8, D3DPOOL_MANAGED, D3DX_DEFAULT, D3DX_DEFAULT, D3DCOLOR_XRGB(255,0,255), NULL, NULL, &highlight);
The problem I''m having is that on larger textures (I''m using 64x64), this doubles the width of the left- and top-most pixels while completely dropping the right- and bottom-most pixels.
Is this a known issue or am I doing something wrong? I''m pretty sure it has nothing to do with my rendering.
On a completely different note:
For some reason, the color quality of my games is much higher in windowed-mode than in fullscreen mode, regardless of the color depth of either mode. I am using a laptop LCD screen, so it might have something to do with this.
Thanks!
- Fuzz
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement