View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0000508||Gameplay + OpenGL||[All Projects] Bug||public||2017-03-30 06:32||2017-03-31 12:09|
|Summary||0000508: Clipping rectangle doesn't seem to work|
|Description|| Screen.SetClipRect(0, 0, 160, 32);|
int xx, yy, ww, hh;
[xx, yy, ww, hh] = Screen.GetClipRect();
Console.Printf("%d/%d/%d/%d", xx, yy, ww, hh);
This just prints 0/0/0/0.
Additionally, if I use the status bar version and not the Screen version - and I give it some DI_* flags - the numbers won't be all 0, but they'll be a single bogus number that doesn't mean anything useful to me (for example 960/960/960/960, regardless of what different combinations of numbers I feed into SetClipRect, the results will all be that one number).
And finally, despite all this, absolutely no clipping is occurring at all - all of the graphics drawn after the SetClipRect call are still getting drawn fully.
|Tags||No tags attached.|