yaclf
This commit is contained in:
@@ -2137,8 +2137,8 @@ void EpubReaderActivity::renderContents(std::unique_ptr<Page> page, const int or
|
|||||||
}
|
}
|
||||||
|
|
||||||
void EpubReaderActivity::renderPageContentOnly(const Page& page, const int orientedMarginTop,
|
void EpubReaderActivity::renderPageContentOnly(const Page& page, const int orientedMarginTop,
|
||||||
const int orientedMarginRight,
|
const int orientedMarginRight, const int orientedMarginBottom,
|
||||||
const int orientedMarginBottom, const int orientedMarginLeft) {
|
const int orientedMarginLeft) {
|
||||||
auto* fcm = renderer.getFontCacheManager();
|
auto* fcm = renderer.getFontCacheManager();
|
||||||
fcm->resetStats();
|
fcm->resetStats();
|
||||||
|
|
||||||
@@ -2155,8 +2155,8 @@ void EpubReaderActivity::renderPageContentOnly(const Page& page, const int orien
|
|||||||
}
|
}
|
||||||
|
|
||||||
void EpubReaderActivity::displayPreRenderedPage(const Page& page, const int orientedMarginTop,
|
void EpubReaderActivity::displayPreRenderedPage(const Page& page, const int orientedMarginTop,
|
||||||
const int orientedMarginRight,
|
const int orientedMarginRight, const int orientedMarginBottom,
|
||||||
const int orientedMarginBottom, const int orientedMarginLeft) {
|
const int orientedMarginLeft) {
|
||||||
const int viewportHeight = std::max(0, renderer.getScreenHeight() - orientedMarginTop - orientedMarginBottom);
|
const int viewportHeight = std::max(0, renderer.getScreenHeight() - orientedMarginTop - orientedMarginBottom);
|
||||||
const int contentTop = orientedMarginTop + getImageOnlyPageYOffset(page, viewportHeight);
|
const int contentTop = orientedMarginTop + getImageOnlyPageYOffset(page, viewportHeight);
|
||||||
|
|
||||||
|
|||||||
@@ -254,8 +254,8 @@ class EpubReaderActivity final : public Activity {
|
|||||||
// Draws the status bar over the current frame buffer and flushes to the display.
|
// Draws the status bar over the current frame buffer and flushes to the display.
|
||||||
// Handles the refresh cycle and grayscale AA pass. page must be the same page
|
// Handles the refresh cycle and grayscale AA pass. page must be the same page
|
||||||
// that was last rendered into the buffer (needed for image AA re-render).
|
// that was last rendered into the buffer (needed for image AA re-render).
|
||||||
void displayPreRenderedPage(const Page& page, int orientedMarginTop, int orientedMarginRight, int orientedMarginBottom,
|
void displayPreRenderedPage(const Page& page, int orientedMarginTop, int orientedMarginRight,
|
||||||
int orientedMarginLeft);
|
int orientedMarginBottom, int orientedMarginLeft);
|
||||||
void renderStatusBar() const;
|
void renderStatusBar() const;
|
||||||
void silentIndexNextChapterIfNeeded(uint16_t viewportWidth, uint16_t viewportHeight);
|
void silentIndexNextChapterIfNeeded(uint16_t viewportWidth, uint16_t viewportHeight);
|
||||||
void saveProgress(int spineIndex, int currentPage, int pageCount);
|
void saveProgress(int spineIndex, int currentPage, int pageCount);
|
||||||
|
|||||||
Reference in New Issue
Block a user