Bug Tracker – Bug 809

DrawPatchStretched Y-Axis off-by-one

Last modified: 2016-09-15 23:42:43 UTC
Bug 809 - DrawPatchStretched Y-Axis off-by-one
Summary: DrawPatchStretched Y-Axis off-by-one
Alias: None
Product: Odamex
Classification: Unclassified
Component: Client (show other bugs)
Version: (old) 0.6-dev
Hardware: All All
: P1 minor
Assignee: Odamex Bug Reporter
Depends on:
Reported: 2012-04-01 16:36 UTC by Alexander Mayfield
Modified: 2016-09-15 23:42 UTC (History)
0 users

See Also:


320x200 example. (28.52 KB, image/png)
2012-04-01 16:36 UTC, Alexander Mayfield
640x480 example (81.45 KB, image/png)
2012-04-01 16:39 UTC, Alexander Mayfield
Add an attachment (proposed patch, testcase, etc.)

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 UTC
Created attachment 352 [details]
320x200 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 UTC
Created attachment 353 [details]
640x480 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 UTC
Set to assigned