Skip to content

Commit 5c1e4c1

Browse files
author
Chris Jakeman
committed
made compatible with Monogame merge
1 parent d4d29a4 commit 5c1e4c1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Source/RunActivity/Viewer3D/Debugging/DebugViewerForm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,7 @@ private void HandlePickedSignal()
15411541
if (signalPickedItem == null) return;
15421542
var y = LastCursorPosition.Y;
15431543
if (LastCursorPosition.Y < 100) y = 100;
1544-
if (LastCursorPosition.Y > pictureBox1.Size.Height - 100) y = pictureBox1.Size.Height - 100;
1544+
if (LastCursorPosition.Y > pbCanvas.Size.Height - 100) y = pbCanvas.Size.Height - 100;
15451545

15461546
if (boxSetSignal.Items.Count == 5)
15471547
boxSetSignal.Items.RemoveAt(4);

Source/RunActivity/Viewer3D/Debugging/TimetableWindow.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
using System.Diagnostics;
2828
using System.Drawing;
2929
using System.Linq;
30+
using Color = System.Drawing.Color;
3031

3132
namespace Orts.Viewer3D.Debugging
3233
{

0 commit comments

Comments
 (0)