![]() |
![]() |
![]() |
![]() |
![]() |
Make 'Lobotomia by No Recess/CONDENSE' work.
Posted on 2005-12-03 00:00:00 |
I investigated the white square size problem and I was able to find out how the coordinates of this box were calculated:
X1 = (VideoSizeX / 3) + 224 Y1 = (VideoSizeY / 3) + 90 X2 = VideoSizeX - 56 Y2 = VideoSizeY - 23 This demo sets VideoSizeX to 640 and VideoSizeY to 224. This gives us (437, 164) for the upper left corner and (584, 201) for the lower right corner. Once we multiply the Y coordinates by two to accomodate the viewport to screen transformation, we get the correct coordinates of this rectangle as seen on the screen shot. The values used for VideoSizeX and VideoSizeY in the code are the right ones and they are set when the GS is initialized. So, I have no idea what's wrong... This problem might be related to the font problem. I've checked this one again and I've checked the source code to this demo's framework and it really gives the width of the font texture in the TEX0 register instead of the width of the texture buffer size. I'll ponder about it and see if I can find a solution for those. I'll start working on the new configuration system for now. |