diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-07-28 17:41:41 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-07-28 17:41:41 +0200 |
commit | 1cde56c3600b5b5b006609c24bfcaf66887167d3 (patch) | |
tree | 2124b13f4b483c2e73c165e2209e0e0d0f687c8a /libreofficekit | |
parent | 7146d8bcd96f844dc0239a5b29a6b36c3cb5a2cc (diff) |
-Werror=declaration-after-statement
Change-Id: I97b1d03410e98c5ff2ad3cc15cef692e9b994a6c
Diffstat (limited to 'libreofficekit')
-rw-r--r-- | libreofficekit/source/gtk/lokdocview.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.c b/libreofficekit/source/gtk/lokdocview.c index e8fe5264a418..07d07a1e9c64 100644 --- a/libreofficekit/source/gtk/lokdocview.c +++ b/libreofficekit/source/gtk/lokdocview.c @@ -98,6 +98,13 @@ void renderDocument( LOKDocView* pDocView ) int nRenderWidth, nRenderHeight; unsigned char* pBuffer; int nRowStride; + // TODO: we really should scale by screen DPI here -- 10 seems to be a vaguely + // correct factor for my screen at least. + const float fScaleFactor = 0.1; + + // Various things blow up if we try to draw too large a tile, + // this size seems to be safe. (Very rare/unlikely that + const int nMaxWidth = 100000; g_assert( pDocView->pDocument ); @@ -108,13 +115,6 @@ void renderDocument( LOKDocView* pDocView ) pDocView->pDocument->pClass->getDocumentSize( pDocView->pDocument, &nWidth, &nHeight ); - // TODO: we really should scale by screen DPI here -- 10 seems to be a vaguely - // correct factor for my screen at least. - const float fScaleFactor = 0.1; - - // Various things blow up if we try to draw too large a tile, - // this size seems to be safe. (Very rare/unlikely that - const int nMaxWidth = 100000; if ( nWidth * fScaleFactor > nMaxWidth ) { nWidth = nMaxWidth; |