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
c5777b4e
Kaydet (Commit)
c5777b4e
authored
Tem 02, 2014
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
android lok: fix paintTile JNI method
Change-Id: Ife12b8bc49d722ae614b7de253bb2061bea5bb7f
üst
263039f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
Document.java
android/Bootstrap/src/org/libreoffice/kit/Document.java
+1
-1
lokandroid.cxx
desktop/source/lib/lokandroid.cxx
+7
-3
No files found.
android/Bootstrap/src/org/libreoffice/kit/Document.java
Dosyayı görüntüle @
c5777b4e
...
@@ -42,7 +42,7 @@ public class Document {
...
@@ -42,7 +42,7 @@ public class Document {
setPartNative
(
handle
,
part
);
setPartNative
(
handle
,
part
);
}
}
void
paintTile
(
ByteBuffer
buffer
,
int
canvasWidth
,
int
canvasHeight
,
int
tilePositionX
,
int
tilePositionY
,
int
tileWidth
,
int
tileHeight
)
{
public
void
paintTile
(
ByteBuffer
buffer
,
int
canvasWidth
,
int
canvasHeight
,
int
tilePositionX
,
int
tilePositionY
,
int
tileWidth
,
int
tileHeight
)
{
paintTileNative
(
handle
,
buffer
,
canvasWidth
,
canvasHeight
,
tilePositionX
,
tilePositionY
,
tileWidth
,
tileHeight
);
paintTileNative
(
handle
,
buffer
,
canvasWidth
,
canvasHeight
,
tilePositionX
,
tilePositionY
,
tileWidth
,
tileHeight
);
}
}
...
...
desktop/source/lib/lokandroid.cxx
Dosyayı görüntüle @
c5777b4e
...
@@ -64,7 +64,6 @@ extern "C" SAL_JNI_EXPORT jlong JNICALL Java_org_libreoffice_kit_Office_document
...
@@ -64,7 +64,6 @@ extern "C" SAL_JNI_EXPORT jlong JNICALL Java_org_libreoffice_kit_Office_document
pEnv
->
ReleaseStringUTFChars
(
documentPath
,
aCharDocumentPath
);
pEnv
->
ReleaseStringUTFChars
(
documentPath
,
aCharDocumentPath
);
LibreOfficeKit
*
pLibreOfficeKit
=
getHandle
<
LibreOfficeKit
>
(
pEnv
,
aObject
);
LibreOfficeKit
*
pLibreOfficeKit
=
getHandle
<
LibreOfficeKit
>
(
pEnv
,
aObject
);
LOGI
(
"D( %s ): %d"
,
aCloneDocumentPath
,
(
int
)
pLibreOfficeKit
);
LibreOfficeKitDocument
*
pDocument
=
pLibreOfficeKit
->
pClass
->
documentLoad
(
pLibreOfficeKit
,
aCloneDocumentPath
);
LibreOfficeKitDocument
*
pDocument
=
pLibreOfficeKit
->
pClass
->
documentLoad
(
pLibreOfficeKit
,
aCloneDocumentPath
);
return
(
jlong
)
(
intptr_t
)
pDocument
;
return
(
jlong
)
(
intptr_t
)
pDocument
;
...
@@ -93,12 +92,17 @@ extern "C" SAL_JNI_EXPORT jint JNICALL Java_org_libreoffice_kit_Document_getDocu
...
@@ -93,12 +92,17 @@ extern "C" SAL_JNI_EXPORT jint JNICALL Java_org_libreoffice_kit_Document_getDocu
}
}
extern
"C"
SAL_JNI_EXPORT
void
JNICALL
Java_org_libreoffice_kit_Document_paintTileNative
extern
"C"
SAL_JNI_EXPORT
void
JNICALL
Java_org_libreoffice_kit_Document_paintTileNative
(
JNIEnv
*
pEnv
,
jobject
aObject
,
jobject
/*aByteBuffer*/
,
(
JNIEnv
*
pEnv
,
jobject
aObject
,
jobject
aByteBuffer
,
jint
nCanvasWidth
,
jint
nCanvasHeight
,
jint
nTilePosX
,
jint
nTilePosY
,
jint
nCanvasWidth
,
jint
nCanvasHeight
,
jint
nTilePosX
,
jint
nTilePosY
,
jint
nTileWidth
,
jint
nTileHeight
)
jint
nTileWidth
,
jint
nTileHeight
)
{
{
LibreOfficeKitDocument
*
pDocument
=
getHandle
<
LibreOfficeKitDocument
>
(
pEnv
,
aObject
);
LibreOfficeKitDocument
*
pDocument
=
getHandle
<
LibreOfficeKitDocument
>
(
pEnv
,
aObject
);
return
pDocument
->
pClass
->
paintTile
(
pDocument
,
NULL
,
nCanvasWidth
,
nCanvasHeight
,
NULL
,
nTilePosX
,
nTilePosY
,
nTileWidth
,
nTileHeight
);
unsigned
char
*
buffer
=
(
unsigned
char
*
)
pEnv
->
GetDirectBufferAddress
(
aByteBuffer
);
jlong
capacity
=
pEnv
->
GetDirectBufferCapacity
(
aByteBuffer
);
int
nStride
=
0
;
pDocument
->
pClass
->
paintTile
(
pDocument
,
buffer
,
nCanvasWidth
,
nCanvasHeight
,
&
nStride
,
nTilePosX
,
nTilePosY
,
nTileWidth
,
nTileHeight
);
(
void
)
nStride
;
}
}
extern
"C"
SAL_JNI_EXPORT
jlong
JNICALL
Java_org_libreoffice_kit_Document_getDocumentHeightNative
extern
"C"
SAL_JNI_EXPORT
jlong
JNICALL
Java_org_libreoffice_kit_Document_getDocumentHeightNative
...
...
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