mirror of
https://github.com/dgis/emu48android
synced 2024-12-26 09:58:49 +01:00
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:
parent
378a3cf67d
commit
72ccc7a98b
10 changed files with 21 additions and 25 deletions
|
@ -70,6 +70,7 @@ Version 2.0 (2020-11-XX)
|
|||
- Replaces the haptic feedback switch with a slider to adjust the vibration duration.
|
||||
- Fix transparency issue (RGB -> BGR).
|
||||
- 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)
|
||||
|
|
|
@ -81,11 +81,11 @@ android {
|
|||
dependencies {
|
||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||
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 'com.google.android.material:material:1.2.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.espresso:espresso-core:3.3.0'
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
package="org.emulator.forty.eight">
|
||||
|
||||
<uses-permission android:name="android.permission.VIBRATE" />
|
||||
<application
|
||||
<application
|
||||
android:name="org.emulator.calculator.EmuApplication"
|
||||
android:allowBackup="true"
|
||||
android:label="@string/app_name"
|
||||
|
|
|
@ -70,6 +70,7 @@ Version 2.0 (2020-11-XX)
|
|||
- Replaces the haptic feedback switch with a slider to adjust the vibration duration.
|
||||
- Fix transparency issue (RGB -> BGR).
|
||||
- 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)
|
||||
|
|
|
@ -29,7 +29,7 @@ static jobject mainActivity = NULL;
|
|||
jobject bitmapMainScreen = NULL;
|
||||
AndroidBitmapInfo androidBitmapInfo;
|
||||
enum DialogBoxMode currentDialogBoxMode;
|
||||
LPBYTE pbyRomBackup;
|
||||
LPBYTE pbyRomBackup = NULL;
|
||||
enum ChooseKmlMode chooseCurrentKmlMode;
|
||||
TCHAR szChosenCurrentKml[MAX_PATH];
|
||||
TCHAR szKmlLog[10240];
|
||||
|
|
|
@ -1859,7 +1859,7 @@ BOOL PatBlt(HDC hdcDest, int x, int y, int w, int h, DWORD rop) {
|
|||
}
|
||||
|
||||
x -= hdcDest->windowOriginX;
|
||||
y -= hdcDest->windowOriginY; // TODO DSTINVERT in screen does not work!!!
|
||||
y -= hdcDest->windowOriginY;
|
||||
|
||||
HPALETTE palette = hdcDest->realizedPalette;
|
||||
if(!palette)
|
||||
|
|
|
@ -53,6 +53,7 @@ import androidx.core.content.FileProvider;
|
|||
import androidx.core.view.GravityCompat;
|
||||
import androidx.documentfile.provider.DocumentFile;
|
||||
import androidx.drawerlayout.widget.DrawerLayout;
|
||||
import androidx.fragment.app.Fragment;
|
||||
|
||||
import com.google.android.material.navigation.NavigationView;
|
||||
|
||||
|
@ -105,8 +106,7 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
|
|||
private ImageButton imageButtonMenu;
|
||||
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_OBJECT_LOAD = 3;
|
||||
public static final int INTENT_OBJECT_SAVE = 4;
|
||||
|
@ -116,8 +116,8 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
|
|||
public static final int INTENT_PICK_KML_FOLDER_FOR_SECURITY = 10;
|
||||
public static final int INTENT_PICK_KML_FOLDER_FOR_KML_NOT_FOUND = 11;
|
||||
public static final int INTENT_CREATE_RAM_CARD = 12;
|
||||
public static final int INTENT_MACRO_LOAD = 13;
|
||||
public static final int INTENT_MACRO_SAVE = 14;
|
||||
public static final int INTENT_MACRO_LOAD = 13;
|
||||
public static final int INTENT_MACRO_SAVE = 14;
|
||||
public static final int INTENT_CREATE_FLASH_ROM = 15;
|
||||
public static final int INTENT_LOAD_FLASH_ROM = 16;
|
||||
|
||||
|
@ -125,7 +125,6 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
|
|||
public String urlToOpenInIntentPort2Load;
|
||||
public String kmlScriptFolderInIntentPort2Load;
|
||||
|
||||
|
||||
private final String kmlMimeType = "application/vnd.google-earth.kml+xml";
|
||||
private boolean kmlFolderUseDefault = true;
|
||||
private String kmlFolderURL = "";
|
||||
|
@ -1737,7 +1736,7 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
|
|||
final int GENERIC_READ = 1;
|
||||
final int GENERIC_WRITE = 2;
|
||||
SparseArray<ParcelFileDescriptor> parcelFileDescriptorPerFd = null;
|
||||
public int openFileFromContentResolver(String fileURL, int writeAccess) {
|
||||
public int openFileFromContentResolver(String fileURL, int writeAccess) {
|
||||
//https://stackoverflow.com/a/31677287
|
||||
Uri uri = Uri.parse(fileURL);
|
||||
ParcelFileDescriptor filePfd;
|
||||
|
@ -1997,11 +1996,6 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
|
|||
|
||||
@SuppressWarnings("UnusedDeclaration")
|
||||
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));
|
||||
}
|
||||
|
||||
|
@ -2124,10 +2118,10 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
|
|||
NativeLib.setConfiguration("settings_sound_volume", isDynamicValue, volumeOption, 0, null);
|
||||
break;
|
||||
}
|
||||
case "settings_haptic_feedback":
|
||||
case "settings_haptic_feedback":
|
||||
case "settings_haptic_feedback_duration":
|
||||
// Nothing to do
|
||||
break;
|
||||
// Nothing to do
|
||||
break;
|
||||
|
||||
case "settings_background_kml_color":
|
||||
mainScreenView.setBackgroundKmlColor(settings.getBoolean("settings_background_kml_color", false));
|
||||
|
|
|
@ -89,7 +89,7 @@
|
|||
<string name="alert_load_flash_rom_error_title">Error when Loading Flash ROM</string>
|
||||
<string name="alert_load_flash_rom_error_message">Cannot load the Flash ROM. Reset to the default Flash ROM (from the current KML script). Please, try to load it again from the menu.</string>
|
||||
|
||||
<string name="message_open_security">Permission Denied</string>
|
||||
<string name="message_open_security">Permission Denied</string>
|
||||
<string name="message_open_security_description">For security reason, you must select the folder where are the KML and ROM files, please.</string>
|
||||
<string name="message_open_security_retry">Please, open again</string>
|
||||
<string name="message_open_security_retry_description">I hope now you could open again the state file.</string>
|
||||
|
@ -99,7 +99,7 @@
|
|||
<string name="message_open_kml_not_found_description3">The KML script "%s" cannot be found in the folder "%s". You must select the folder where are the KML and ROM files, please.</string>
|
||||
<string name="message_open_port2_file_not_found">Port 2 File not Found</string>
|
||||
<string name="message_open_port2_file_not_found_description">The port 2 file "%s" cannot be found. You should select it again, please.</string>
|
||||
<string name="message_state_saved">State saved in %s</string>
|
||||
<string name="message_state_saved">State saved in %s</string>
|
||||
<string name="message_state_and_flash_saved">State %s and flash %s saved</string>
|
||||
<string name="message_do_you_want_to_save">Do you want to save changes?\n(BACK to cancel)</string>
|
||||
<string name="message_save_new_file">Do you want to save this new state file?\n(To avoid losing the state of the machine)</string>
|
||||
|
@ -180,7 +180,7 @@
|
|||
<string name="settings_port1wr_title">Port 1 is Writable</string>
|
||||
<string name="settings_port2en_title">Port 2 is Plugged</string>
|
||||
<string name="settings_port2wr_title">Port 2 is Writable</string>
|
||||
<string name="settings_port2load_title">Port 2 File</string>
|
||||
<string name="settings_port2load_title">Port 2 File</string>
|
||||
<string name="settings_flash_port2_title">Port 2 Flash File</string>
|
||||
|
||||
<string name="settings_category_printer_title">Printer Simulator</string>
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory android:title="@string/settings_category_ui_title">
|
||||
<ListPreference
|
||||
<ListPreference
|
||||
android:key="settings_auto_layout"
|
||||
android:title="@string/settings_auto_layout_title"
|
||||
android:dialogTitle="@string/settings_auto_layout_title"
|
||||
|
|
4
gradle/wrapper/gradle-wrapper.properties
vendored
4
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -1,6 +1,6 @@
|
|||
#Tue Oct 13 08:57:24 CEST 2020
|
||||
#Fri Oct 30 22:52:03 CET 2020
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue