Logic fix for Qt TAS piano roll ensure line is visible.
This commit is contained in:
parent
f135fd2888
commit
3db26d3fb0
|
@ -4505,9 +4505,18 @@ void QPianoRoll::ensureTheLineIsVisible( int lineNum )
|
||||||
{
|
{
|
||||||
if ( !lineIsVisible( lineNum ) )
|
if ( !lineIsVisible( lineNum ) )
|
||||||
{
|
{
|
||||||
|
//int lineEnd = lineOffset + viewLines - 2;
|
||||||
//printf("Seeking Frame %i\n", lineNum );
|
//printf("Seeking Frame %i\n", lineNum );
|
||||||
|
|
||||||
lineOffset = lineNum;
|
if ( lineNum < lineOffset )
|
||||||
|
{
|
||||||
|
lineOffset = lineNum;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//printf("Seeking View Frame %i\n", lineNum );
|
||||||
|
lineOffset = lineOffset - viewLines + 2;
|
||||||
|
}
|
||||||
|
|
||||||
if ( lineOffset < 0 )
|
if ( lineOffset < 0 )
|
||||||
{
|
{
|
||||||
|
|
|
@ -1188,9 +1188,9 @@ FCEUD_Update(uint8 *XBuf,
|
||||||
|
|
||||||
static void DoFun(int frameskip, int periodic_saves)
|
static void DoFun(int frameskip, int periodic_saves)
|
||||||
{
|
{
|
||||||
uint8 *gfx;
|
uint8 *gfx = 0;
|
||||||
int32 *sound;
|
int32 *sound = 0;
|
||||||
int32 ssize;
|
int32 ssize = 0;
|
||||||
static int fskipc = 0;
|
static int fskipc = 0;
|
||||||
//static int opause = 0;
|
//static int opause = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue