View Issue Details

IDProjectCategoryView StatusLast Update
0000508Gameplay + OpenGL[All Projects] Bugpublic2017-03-31 12:09
Assigned To 
Status resolvedResolutionfixed 
Summary0000508: 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.
TagsNo tags attached.





2017-03-30 18:48

reporter   ~0001191

Works now after the fix, thanks.,

Issue History

Date Modified Username Field Change
2017-03-30 06:32 Nash New Issue
2017-03-30 18:48 Nash Note Added: 0001191
2017-03-31 12:09 Graf Zahl Status new => resolved
2017-03-31 12:09 Graf Zahl Resolution open => fixed