SetClipRect does not go outside of screen boundaries

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Posts: 2378
Joined: Thu Feb 11, 2016 9:59 am

SetClipRect does not go outside of screen boundaries

Post by Accensus »

This only happens if you use a HUD scale that's enough to knock the clip outside of the frame. Tested on gzdoom-x64-g4.9pre-220-gc87e87365. Happens regardless of rendering backend setting.

Steps to reproduce:

1. Load this mod.
2. In Deathstrider settings, under UI, enable compass.
3. Either increase HUD scale until the compass is outside of the screen or reduce scale factor in video settings. Doesn't matter which.
The directions will begin to look incorrect. That's not so much them being wrong as much as it is the clipping not working correctly. If you comment out this line you will see how the compass works. It shifts the string left/right and wraps it around, clipping the excess and creating the illusion that it rotates 360 degrees. Problem is that while the actual string is correctly shifted outside of the screen, the clip rect isn't, which makes it show the part of the compass the player isn't supposed to see.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 48376
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: SetClipRect does not go outside of screen boundaries

Post by Graf Zahl »


Return to “Closed Bugs [GZDoom]”