Bug Tracker – Bug 809

DrawPatchStretched Y-Axis off-by-one

Last modified: 2016-09-15 23:42:43 CDT
Bug 809 - (ARRAY(0x4819278)) DrawPatchStretched Y-Axis off-by-one
DrawPatchStretched Y-Axis off-by-one
Product: Odamex
Classification: Unclassified
Component: Client
(old) 0.6-dev
All All
: P1 minor
Depends on:
  Show dependency tree
Reported: 2012-04-01 16:36:40 CDT by Alexander Mayfield
Modified: 2016-09-15 23:42 CDT (History)
0 users

See Also:

320x200 example. (28.52 KB, image/png)
2012-04-01 16:36:40 CDT, Alexander Mayfield
640x480 example (81.45 KB, image/png)
2012-04-01 16:39:08 CDT, Alexander Mayfield

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Mayfield 2012-04-01 16:36:40 CDT
Created ﷒0320x200 example.

I have discovered that our stretched patch drawers have an inaccuracy if you pass it any height value that is not the exact height of the patch.  Doing this results in a blank line being drawn for the first row, then the patch is drawn correctly scaled...except there is a row of pixels cut off at the bottom.

Attached is an example of this happening.  I am drawing blue armors across the top of the screen, and in all cases except where the height is 17, you can see the extra row of pixels and the bottom being cut off.  This behavior has been observed with DrawPatchStretched and DrawLucentPatchStretched.
Comment 1 Alexander Mayfield 2012-04-01 16:39:08 CDT
Created ﷒0640x480 example

The same thing happening at 640x480.  I have aligned the armors to the top of the screen so it's easier to see what is going on.
Comment 2 Mike Lightner 2016-09-15 23:42:43 CDT
Set to assigned