08-28-2010, 03:11 PM
But I do have the ability to display the full 480x480, by scrolling. So up to now, that's what I have done. It starts out 320x480, with no scrolling, but when you turn the device to landscape, the EndDraw tells me 480x480, so I enable scrolling. However, because the template specifically switches to 480x320 when the device is oriented as landscape, the effect of the scrolling is to show you a blank bar of 480x160 below the template. The scrolling is undesirable; it never shows anything useful.
Now that I receive a NewTemplate message telling me that the template is really 480x320, I could use that information to override the rectangle passed to me by EndDraw. Even when EndDraw tells me 480x480, I know the content is really 480x320, because that's what NewTemplate said.
But I'm hesitant to do this, because I wonder why the RIVA server itself isn't using the same logic. It knows internally that the template is 480x320, but it still spits out the full 480x480. Why is that? Should I do the same thing for safety?
Now that I receive a NewTemplate message telling me that the template is really 480x320, I could use that information to override the rectangle passed to me by EndDraw. Even when EndDraw tells me 480x480, I know the content is really 480x320, because that's what NewTemplate said.
But I'm hesitant to do this, because I wonder why the RIVA server itself isn't using the same logic. It knows internally that the template is 480x320, but it still spits out the full 480x480. Why is that? Should I do the same thing for safety?