mirror of
https://github.com/YACReader/yacreader
synced 2025-07-21 06:24:39 -04:00
corregido problema de lag con "check new version"
corregido bug que causaba que las marcas de leidos no se viesen bajo determinadas circustancias sincronizadas los sliders de ajustar a lo ancho corregido bug que causaba que los mensajes isCover e isLast no se mostrasen en modo de doble p?gina
This commit is contained in:
@ -635,6 +635,8 @@ void Render::nextPage()
|
||||
currentIndex = nextPage;
|
||||
update();
|
||||
}
|
||||
else
|
||||
emit isLast();
|
||||
}
|
||||
//si se solicita la p<>gina anterior, se calcula cu<63>l debe ser en funci<63>n de si se lee en modo a doble p<>gina o no.
|
||||
//la p<>gina s<>lo se renderiza, si realmente ha cambiado.
|
||||
@ -663,6 +665,8 @@ void Render::previousPage()
|
||||
currentIndex = previousPage;
|
||||
update();
|
||||
}
|
||||
else
|
||||
emit isCover();
|
||||
}
|
||||
unsigned int Render::getIndex()
|
||||
{
|
||||
@ -742,8 +746,7 @@ void Render::goTo(int index)
|
||||
void Render::rotateRight()
|
||||
{
|
||||
imageRotation = (imageRotation+90) % 360;
|
||||
invalidate();
|
||||
update();
|
||||
reload();
|
||||
}
|
||||
void Render::rotateLeft()
|
||||
{
|
||||
@ -751,8 +754,7 @@ void Render::rotateLeft()
|
||||
imageRotation = 270;
|
||||
else
|
||||
imageRotation = imageRotation - 90;
|
||||
invalidate();
|
||||
update();
|
||||
reload();
|
||||
}
|
||||
|
||||
//Actualiza el buffer, a<>adiendo las im<69>genes (vac<61>as) necesarias para su posterior renderizado y
|
||||
@ -890,7 +892,7 @@ void Render::invalidate()
|
||||
{
|
||||
if(pageRenders[i]!=0)
|
||||
{
|
||||
pageRenders[i]->terminate();
|
||||
pageRenders[i]->wait();
|
||||
delete pageRenders[i];
|
||||
pageRenders[i] = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user