mirror of
https://github.com/whscullin/apple2js.git
synced 2024-01-12 14:14:38 +00:00
Fix high bit miscalculation, mouse offset calcuation.
This commit is contained in:
parent
73aa3d647f
commit
8e5a60b284
@ -780,7 +780,9 @@ export function HiresPage(page, context)
|
||||
_refreshing = false;
|
||||
}
|
||||
} else {
|
||||
val = _buffer[0][base] & 0x7f;
|
||||
val = _buffer[0][base];
|
||||
hbs = val & 0x80;
|
||||
val &= 0x7f;
|
||||
dx = col * 14 - 2;
|
||||
b0 = col > 0 ? _buffer[0][base - 1] : 0;
|
||||
b2 = col < 39 ? _buffer[0][base + 1] : 0;
|
||||
|
@ -838,7 +838,7 @@ function _mousemove(evt) {
|
||||
}
|
||||
|
||||
var s = document.querySelector('#screen');
|
||||
var offset = { top: s.clientTop, left: s.clientLeft };
|
||||
var offset = s.getBoundingClientRect();
|
||||
var x = (evt.pageX - offset.left) / s.clientWidth,
|
||||
y = (evt.pageY - offset.top) / s.clientHeight,
|
||||
z = x;
|
||||
|
@ -822,7 +822,7 @@ function _mousemove(evt) {
|
||||
}
|
||||
|
||||
var s = document.querySelector('#screen');
|
||||
var offset = { top: s.clientTop, left: s.clientLeft };
|
||||
var offset = s.getBoundingClientRect();
|
||||
var x = (evt.pageX - offset.left) / s.clientWidth,
|
||||
y = (evt.pageY - offset.top) / s.clientHeight,
|
||||
z = x;
|
||||
|
Loading…
Reference in New Issue
Block a user