mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-25 19:46:21 +00:00
Fix off-by-one error in clipping_Xbitblt (#327)
The LowerRightX and LowerRightY were calculated as the X and Y coordinates of the pixel to the right and below the last visible pixel, but are compared with the last actually visible pixel in the source. They need an extra -1 offset to correct. Add comments to explain what's going on. Fix the signature of the function to reflect that the "dummy" passed for the display region is a pointer not an integer.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#ifndef XBBTDEFS_H
|
||||
#define XBBTDEFS_H 1
|
||||
unsigned long clipping_Xbitblt(DspInterface dsp, int dummy, int x, int y, int w, int h);
|
||||
unsigned long clipping_Xbitblt(DspInterface dsp, DLword *dummy, int x, int y, int w, int h);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user