|
From: <sag...@us...> - 2014-12-02 22:33:54
|
Revision: 4626
http://sourceforge.net/p/modplug/code/4626
Author: saga-games
Date: 2014-12-02 22:33:39 +0000 (Tue, 02 Dec 2014)
Log Message:
-----------
[Fix] Sample tab: Sustain loop display accidentally changed in r4614
[Imp] Sample tab: Visually distinguish sustain loop and sample grid markers
Revision Links:
--------------
http://sourceforge.net/p/modplug/code/4614
Modified Paths:
--------------
trunk/OpenMPT/mptrack/View_smp.cpp
Modified: trunk/OpenMPT/mptrack/View_smp.cpp
===================================================================
--- trunk/OpenMPT/mptrack/View_smp.cpp 2014-12-02 19:53:57 UTC (rev 4625)
+++ trunk/OpenMPT/mptrack/View_smp.cpp 2014-12-02 22:33:39 UTC (rev 4626)
@@ -1111,6 +1111,7 @@
// Sustain Loop Start/End
if ((sample.nSustainEnd > nSmpScrollPos) && (sample.nSustainEnd > sample.nSustainStart))
{
+ offScreenDC.SetBkColor(RGB(0xFF, 0xFF, 0xFF));
offScreenDC.SelectObject(CMainFrame::penHalfDarkGray);
int xl = SampleToScreen(sample.nSustainStart);
if ((xl >= 0) && (xl < rcClient.right))
@@ -1167,6 +1168,7 @@
if(m_nGridSegments && m_nGridSegments < sample.nLength)
{
// Draw sample grid
+ offScreenDC.SetBkColor(TrackerSettings::Instance().rgbCustomColors[MODCOLOR_BACKSAMPLE]);
offScreenDC.SelectObject(CMainFrame::penHalfDarkGray);
for(SmpLength i = 1; i < m_nGridSegments; i++)
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|