Skip to content

Commit

Permalink
no longer invert pixels on breakpoint, Monitor.getDisplayParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
sehugg committed Nov 10, 2023
1 parent 9d124f0 commit 113cd57
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion release/javatari/javatari.js

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions src/main/atari/tia/Tia.js
Expand Up @@ -75,12 +75,6 @@ jt.Tia = function(pCpu, pPia) {
// Second Audio Sample. 2 samples per scan line ~ 31440 KHz
audioSignal.audioClockPulse();
finishLine();
// If breakpoint hit, invert pixels on remainder of screen
if (breakClock >= 0) {
for (var i=breakClock; i<LINE_WIDTH; i++)
linePixels[i] ^= 0xffffff;
breakClock = 0;
}
// Send the finished line to the output and check if monitor vSynched (true returned)
} while(!videoSignal.nextLine(linePixels, vSyncOn));
// Ask for a refresh of the frame
Expand Down
14 changes: 14 additions & 0 deletions src/main/room/screen/Monitor.js
Expand Up @@ -56,6 +56,20 @@ jt.Monitor = function() {
return vSynched;
};

this.getDisplayParameters = function() {
return {
signalWidth: signalWidth,
signalHeight: signalHeight,
displayWidth: displayWidth,
displayHeight: displayHeight,
displayOriginX: displayOriginX,
displayOriginY: displayOriginY,
displayScaleX: displayScaleX,
displayScaleY: displayScaleY,
crtMode: crtMode
};
};

this.synchOutput = function() {
refresh();
};
Expand Down

0 comments on commit 113cd57

Please sign in to comment.