Fix the KML button Type 3 with a Background offset which was not display at the right location (Fix #15).

This commit is contained in:
dgis 2020-10-30 23:08:40 +01:00
parent 378a3cf67d
commit 72ccc7a98b
10 changed files with 21 additions and 25 deletions

View file

@ -70,6 +70,7 @@ Version 2.0 (2020-11-XX)
- Replaces the haptic feedback switch with a slider to adjust the vibration duration. - Replaces the haptic feedback switch with a slider to adjust the vibration duration.
- Fix transparency issue (RGB -> BGR). - Fix transparency issue (RGB -> BGR).
- Fix a printer issue from Christoph Gießelink's HP82240B Printer Simulator version 1.12. - Fix a printer issue from Christoph Gießelink's HP82240B Printer Simulator version 1.12.
- Fix the KML button Type 3 with a Background offset which was not display at the right location (Fix #15).
Version 1.9 (2020-09-07) Version 1.9 (2020-09-07)

View file

@ -81,11 +81,11 @@ android {
dependencies { dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar']) implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.1' implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
implementation 'androidx.preference:preference:1.1.1' implementation 'androidx.preference:preference:1.1.1'
implementation 'com.google.android.material:material:1.2.1' implementation 'com.google.android.material:material:1.2.1'
implementation 'androidx.documentfile:documentfile:1.0.1' implementation 'androidx.documentfile:documentfile:1.0.1'
testImplementation 'junit:junit:4.13' testImplementation 'junit:junit:4.13.1'
androidTestImplementation 'androidx.test:runner:1.3.0' androidTestImplementation 'androidx.test:runner:1.3.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
} }

View file

@ -70,6 +70,7 @@ Version 2.0 (2020-11-XX)
- Replaces the haptic feedback switch with a slider to adjust the vibration duration. - Replaces the haptic feedback switch with a slider to adjust the vibration duration.
- Fix transparency issue (RGB -> BGR). - Fix transparency issue (RGB -> BGR).
- Fix a printer issue from Christoph Gießelink's HP82240B Printer Simulator version 1.12. - Fix a printer issue from Christoph Gießelink's HP82240B Printer Simulator version 1.12.
- Fix the KML button Type 3 with a Background offset which was not display at the right location (Fix #15).
Version 1.9 (2020-09-07) Version 1.9 (2020-09-07)

View file

@ -29,7 +29,7 @@ static jobject mainActivity = NULL;
jobject bitmapMainScreen = NULL; jobject bitmapMainScreen = NULL;
AndroidBitmapInfo androidBitmapInfo; AndroidBitmapInfo androidBitmapInfo;
enum DialogBoxMode currentDialogBoxMode; enum DialogBoxMode currentDialogBoxMode;
LPBYTE pbyRomBackup; LPBYTE pbyRomBackup = NULL;
enum ChooseKmlMode chooseCurrentKmlMode; enum ChooseKmlMode chooseCurrentKmlMode;
TCHAR szChosenCurrentKml[MAX_PATH]; TCHAR szChosenCurrentKml[MAX_PATH];
TCHAR szKmlLog[10240]; TCHAR szKmlLog[10240];

View file

@ -1859,7 +1859,7 @@ BOOL PatBlt(HDC hdcDest, int x, int y, int w, int h, DWORD rop) {
} }
x -= hdcDest->windowOriginX; x -= hdcDest->windowOriginX;
y -= hdcDest->windowOriginY; // TODO DSTINVERT in screen does not work!!! y -= hdcDest->windowOriginY;
HPALETTE palette = hdcDest->realizedPalette; HPALETTE palette = hdcDest->realizedPalette;
if(!palette) if(!palette)

View file

@ -53,6 +53,7 @@ import androidx.core.content.FileProvider;
import androidx.core.view.GravityCompat; import androidx.core.view.GravityCompat;
import androidx.documentfile.provider.DocumentFile; import androidx.documentfile.provider.DocumentFile;
import androidx.drawerlayout.widget.DrawerLayout; import androidx.drawerlayout.widget.DrawerLayout;
import androidx.fragment.app.Fragment;
import com.google.android.material.navigation.NavigationView; import com.google.android.material.navigation.NavigationView;
@ -105,7 +106,6 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
private ImageButton imageButtonMenu; private ImageButton imageButtonMenu;
private Vibrator vibrator; private Vibrator vibrator;
public static final int INTENT_GETOPENFILENAME = 1; public static final int INTENT_GETOPENFILENAME = 1;
public static final int INTENT_GETSAVEFILENAME = 2; public static final int INTENT_GETSAVEFILENAME = 2;
public static final int INTENT_OBJECT_LOAD = 3; public static final int INTENT_OBJECT_LOAD = 3;
@ -125,7 +125,6 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
public String urlToOpenInIntentPort2Load; public String urlToOpenInIntentPort2Load;
public String kmlScriptFolderInIntentPort2Load; public String kmlScriptFolderInIntentPort2Load;
private final String kmlMimeType = "application/vnd.google-earth.kml+xml"; private final String kmlMimeType = "application/vnd.google-earth.kml+xml";
private boolean kmlFolderUseDefault = true; private boolean kmlFolderUseDefault = true;
private String kmlFolderURL = ""; private String kmlFolderURL = "";
@ -1997,11 +1996,6 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
@SuppressWarnings("UnusedDeclaration") @SuppressWarnings("UnusedDeclaration")
public void performHapticFeedback() { public void performHapticFeedback() {
// if(settings.getBoolean("settings_haptic_feedback", true))
// //mainScreenView.performHapticFeedback(HapticFeedbackConstants.CONTEXT_CLICK, HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING);
// mainScreenView.performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY, HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING);
// //mainScreenView.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS, HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING);
Utils.vibrate(vibrator, settings.getInt("settings_haptic_feedback_duration", 25)); Utils.vibrate(vibrator, settings.getInt("settings_haptic_feedback_duration", 25));
} }

View file

@ -1,6 +1,6 @@
#Tue Oct 13 08:57:24 CEST 2020 #Fri Oct 30 22:52:03 CET 2020
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip