1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-03 17:59:33 +02:00
git-svn-id: https://only.mawhrin.net/repos/FBReaderJ/trunk@993 6a642e6f-84f6-412e-ac94-c4a38d5a04b0
This commit is contained in:
Nikolay Pultsin 2009-07-03 18:08:10 +00:00
parent b9ad96c6cd
commit 4b48ca9e29
10 changed files with 22 additions and 17 deletions

View file

@ -1 +1 @@
0.5.9
0.5.10

View file

@ -1 +1 @@
<!ENTITY FBReaderVersion "0.5.9">
<!ENTITY FBReaderVersion "0.5.10">

View file

@ -63,7 +63,7 @@ jint Java_org_amse_ys_zip_NativeDeflatingDecompressor_inflate(JNIEnv *env, jobje
stream->avail_out = outLength;
const int code = inflate(stream, Z_SYNC_FLUSH);
env->ReleaseByteArrayElements(in, inStart, 0);
env->ReleaseByteArrayElements(out, outStart, 0);
env->ReleaseByteArrayElements(out, outStart, outLength - stream->avail_out);
if ((code == Z_OK) || (code == Z_STREAM_END)) {
return ((inLength - stream->avail_in) << 16) + outLength - stream->avail_out;
}

View file

@ -13,7 +13,10 @@ if [ $# -ne 1 -a $# -ne 2 ]; then
fi
updateVersion() {
intversion=`echo $version | sed "s/\\./0/g" | sed -E "s/^0+//"`
major=`echo $version | cut -d . -f 1`
minor=`echo $version | cut -d . -f 2`
micro=`echo $version | cut -d . -f 3`
let intversion=10000*$major+100*$minor+$micro
echo "<!ENTITY FBReaderVersion \"$version\">" > data/formats/fb2/FBReaderVersion.ent
sed "s/@INTVERSION@/$intversion/" platform/android/AndroidManifest.xml.pattern | sed "s/@VERSION@/$version/" > platform/android/AndroidManifest.xml
}

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.geometerplus.zlibrary.ui.android" android:versionCode="509" android:versionName="0.5.9">
<uses-sdk android:minSdkVersion="3"/>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.geometerplus.zlibrary.ui.android" android:versionCode="510" android:versionName="0.5.10">
<uses-sdk android:minSdkVersion="1"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<application android:name="org.geometerplus.zlibrary.ui.android.library.ZLAndroidApplication" android:icon="@drawable/fbreader" android:label="FBReader">

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.geometerplus.zlibrary.ui.android" android:versionCode="@INTVERSION@" android:versionName="@VERSION@">
<uses-sdk android:minSdkVersion="3"/>
<uses-sdk android:minSdkVersion="1"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<application android:name="org.geometerplus.zlibrary.ui.android.library.ZLAndroidApplication" android:icon="@drawable/fbreader" android:label="FBReader">

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 817 B

After

Width:  |  Height:  |  Size: 880 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 756 B

After

Width:  |  Height:  |  Size: 716 B

Before After
Before After

View file

@ -35,15 +35,16 @@ class XHTMLTagImageAction extends XHTMLTagAction {
protected void doAtStart(XHTMLReader reader, ZLStringMap xmlattributes) {
String fileName = xmlattributes.getValue(myNameAttribute);
if (fileName != null) {
if (fileName.startsWith("./")) {
fileName = fileName.substring(2);
}
final ZLFile imageFile = ZLFile.createFileByPath(reader.getPathPrefix() + fileName);
if (imageFile != null) {
final BookReader modelReader = reader.getModelReader();
boolean flag = modelReader.paragraphIsOpen();
if (flag) {
modelReader.endParagraph();
}
if (fileName.startsWith("./")) {
fileName = fileName.substring(2);
}
final ZLFile imageFile = ZLFile.createFileByPath(reader.getPathPrefix() + fileName);
final String imageName = imageFile.getName(false);
modelReader.addImageReference(imageName, (short)0);
modelReader.addImage(imageName, new ZLFileImage("image/auto", imageFile));
@ -52,6 +53,7 @@ class XHTMLTagImageAction extends XHTMLTagAction {
}
}
}
}
protected void doAtEnd(XHTMLReader reader) {
}