Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
af600187
Kaydet (Commit)
af600187
authored
Haz 25, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix build
Change-Id: I33f06887b4b2b7950c6e322ccf1c7ec65240f9b0
üst
0a5e6614
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
lokdocview.c
libreofficekit/source/gtk/lokdocview.c
+8
-5
No files found.
libreofficekit/source/gtk/lokdocview.c
Dosyayı görüntüle @
af600187
...
...
@@ -93,6 +93,11 @@ SAL_DLLPUBLIC_EXPORT GtkWidget* lok_docview_new( LibreOfficeKit* pOffice )
void
renderDocument
(
LOKDocView
*
pDocView
)
{
long
nWidth
,
nHeight
;
int
nRenderWidth
,
nRenderHeight
;
unsigned
char
*
pBuffer
;
int
nRowStride
;
g_assert
(
pDocView
->
pDocument
);
if
(
pDocView
->
pPixBuf
)
...
...
@@ -100,23 +105,21 @@ void renderDocument( LOKDocView* pDocView )
g_object_unref
(
G_OBJECT
(
pDocView
->
pPixBuf
)
);
}
long
nWidth
,
nHeight
;
pDocView
->
pDocument
->
pClass
->
getDocumentSize
(
pDocView
->
pDocument
,
&
nWidth
,
&
nHeight
);
// Draw the whole document at once (for now)
// TODO: we really should scale by screen DPI here -- 10 seems to be a vaguely
// correct factor for my screen at least.
int
nRenderWidth
=
nWidth
*
pDocView
->
fZoom
/
10
;
int
nRenderHeight
=
nHeight
*
pDocView
->
fZoom
/
10
;
nRenderWidth
=
nWidth
*
pDocView
->
fZoom
/
10
;
nRenderHeight
=
nHeight
*
pDocView
->
fZoom
/
10
;
pDocView
->
pPixBuf
=
gdk_pixbuf_new
(
GDK_COLORSPACE_RGB
,
TRUE
,
8
,
nRenderWidth
,
nRenderHeight
);
unsigned
char
*
pBuffer
=
gdk_pixbuf_get_pixels
(
pDocView
->
pPixBuf
);
int
nRowStride
;
pBuffer
=
gdk_pixbuf_get_pixels
(
pDocView
->
pPixBuf
);
pDocView
->
pDocument
->
pClass
->
paintTile
(
pDocView
->
pDocument
,
pBuffer
,
nRenderWidth
,
nRenderHeight
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment