From 1e99f29253246339627854300ae9d8d5d5f84cd7 Mon Sep 17 00:00:00 2001 From: Jeff Parsons Date: Thu, 17 Mar 2016 16:38:10 -0700 Subject: [PATCH] Fixed video messages --- modules/pcjs/lib/video.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/pcjs/lib/video.js b/modules/pcjs/lib/video.js index 3eb0d30e5..bfeda6f48 100644 --- a/modules/pcjs/lib/video.js +++ b/modules/pcjs/lib/video.js @@ -2721,7 +2721,7 @@ Card.prototype.setMemoryAccess = function(nAccess) var nReadAccess = nAccess & Card.ACCESS.READ.MASK; var fnReadByte = Card.ACCESS.afn[nReadAccess]; if (!fnReadByte) { - if (DEBUG && this.dbg) { + if (DEBUG && this.dbg && this.dbg.messageEnabled(Messages.VIDEO)) { this.dbg.message("Card.setMemoryAccess(" + str.toHexWord(nAccess) + "): missing readByte handler"); /* * I've taken a look, and the cases I've seen so far stem from the order in which the IBM VGA BIOS @@ -2746,7 +2746,7 @@ Card.prototype.setMemoryAccess = function(nAccess) var nWriteAccess = nAccess & Card.ACCESS.WRITE.MASK; var fnWriteByte = Card.ACCESS.afn[nWriteAccess]; if (!fnWriteByte) { - if (DEBUG && this.dbg) { + if (DEBUG && this.dbg && this.dbg.messageEnabled(Messages.VIDEO)) { this.dbg.message("Card.setMemoryAccess(" + str.toHexWord(nAccess) + "): missing writeByte handler"); /* * I've taken a look, and the cases I've seen so far stem from the order in which the IBM VGA BIOS