Fix attribute clash quantization in update
It would previously undershoot, not quantizing to an area fully enclosing the unquantized area. This solves issue #79
This commit is contained in:
parent
efe9f8406f
commit
b6cebc4edf
@ -139,10 +139,10 @@ void Update_part_of_screen(short x, short y, short width, short height)
|
|||||||
|
|
||||||
// Round up to a multiple of 8 pixels, because some special modes (ZX, Thomson, ...) can change
|
// Round up to a multiple of 8 pixels, because some special modes (ZX, Thomson, ...) can change
|
||||||
// more pixels than expected (attribute clash)
|
// more pixels than expected (attribute clash)
|
||||||
|
width = ((width + (x & 7)) | 7) + 1;
|
||||||
|
height = ((height + (y & 7)) | 7) + 1;
|
||||||
x &= 0xFFF8;
|
x &= 0xFFF8;
|
||||||
y &= 0xFFF8;
|
y &= 0xFFF8;
|
||||||
width = ((width - 1) | 0x7) + 1;
|
|
||||||
height = ((height - 1) | 0x7) + 1;
|
|
||||||
|
|
||||||
// Update "normal" view
|
// Update "normal" view
|
||||||
diff = x-Main.offset_X;
|
diff = x-Main.offset_X;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user