The text centring for the MessageBox doesn't appear to work on my system, in both the Teapot Wars example game, and the game I'm working on myself.
msgWidth and msgHeight both come out as 0 (because rc stays at 0, 0, 0, 0), so the text is just placed starting at the centre of the message box, and spills out over its boundaries. Does this happen for everyone or is it something to do with my DirectX? Either way, I'm not very familiar with DirectX so I have no idea how to fix it. Any ideas why this might be happening?
msgWidth and msgHeight both come out as 0 (because rc stays at 0, 0, 0, 0), so the text is just placed starting at the centre of the message box, and spills out over its boundaries. Does this happen for everyone or is it something to do with my DirectX? Either way, I'm not very familiar with DirectX so I have no idea how to fix it. Any ideas why this might be happening?