From 867674c8fb71a3b791a92f78b5432ac94aa57577 Mon Sep 17 00:00:00 2001
From: thrust26
Date: Sun, 12 Aug 2018 14:33:25 +0200
Subject: [PATCH] updated docs for #346 enhancement
---
Changes.txt | 2 ++
docs/debugger.html | 7 ++-----
src/debugger/gui/TiaOutputWidget.cxx | 11 ++++-------
3 files changed, 8 insertions(+), 12 deletions(-)
diff --git a/Changes.txt b/Changes.txt
index 107129068..30c463ed8 100644
--- a/Changes.txt
+++ b/Changes.txt
@@ -63,6 +63,8 @@
* Fixed missing debug color update when switching display type.
+ * 'Fill to scanline' now works for scanlines above current scanline too
+
* For UNIX systems: in the ROM launcher, when using symlinks use the
symlink pathname instead of the underlying filesystem pathname.
diff --git a/docs/debugger.html b/docs/debugger.html
index a0189a47e..b8e3e88f0 100644
--- a/docs/debugger.html
+++ b/docs/debugger.html
@@ -1089,11 +1089,8 @@ as illustrated:
The options are as follows:
- - Fill to scanline: If you've already started a partial frame
- draw (ie, the frame is already partially 'greyed' out), selecting this
- option will draw all scanlines up to the vertical position where the
- mouse was clicked. Note that if you weren't in partial-frame mode,
- this option will have no effect.
+ - Fill to scanline: This option will draw all scanlines up to the
+ vertical position where the mouse was clicked.
- Toggle breakpoint: Will toggle a conditional breakpoint at the
scanline where the mouse was clicked. You can also use
the Prompt Tab commands to list and turn off the breakpoint.
diff --git a/src/debugger/gui/TiaOutputWidget.cxx b/src/debugger/gui/TiaOutputWidget.cxx
index b7fce2c16..2cefc2abf 100644
--- a/src/debugger/gui/TiaOutputWidget.cxx
+++ b/src/debugger/gui/TiaOutputWidget.cxx
@@ -119,13 +119,10 @@ void TiaOutputWidget::handleCommand(CommandSender* sender, int cmd, int data, in
if(rmb == "scanline")
{
ostringstream command;
- int lines = myClickY + ystart;
- if(instance().console().tia().isRendering())
- {
- lines -= instance().console().tia().scanlines();
- if(lines < 0)
- lines += instance().console().tia().scanlinesLastFrame();
- }
+ int lines = myClickY + ystart - instance().console().tia().scanlines();
+
+ if(lines < 0)
+ lines += instance().console().tia().scanlinesLastFrame();
if(lines > 0)
{
command << "scanline #" << lines;