Skip to content
Snippets Groups Projects
Commit 9cb982e0 authored by Matyáš Latner's avatar Matyáš Latner
Browse files

Merge branch 'feature-multisampling' into 'devel'

#162 Enable multi sampling 2x for Android and Desktop and 4x for iOS (only value supported)

Zkoušel jsem nastavení na desktopu, tabletu s Androidem a iPadu. Všude to podle mně běhalo plynule a ani to na iPadu dokonce nespadlo.

See merge request !216
parents c904f6cc 2a87214c
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,8 @@ public class AndroidLauncher extends AndroidApplication {
public static final Tablexia.SQLConnectionType SQL_CONNECTION_TYPE = new Tablexia.SQLConnectionType("org.sqldroid.SQLDroidDriver", "jdbc:sqldroid:");
private static final int MULTI_SAMPLING_2X = 2;
private Tablexia tablexia;
@Override
......@@ -32,6 +34,7 @@ public class AndroidLauncher extends AndroidApplication {
super.onCreate(savedInstanceState);
AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
config.useWakelock = true;
config.numSamples = MULTI_SAMPLING_2X;
initialize(tablexia = new Tablexia(BuildConfig.BUILD_TYPE,
getResources().getConfiguration().locale,
SQL_CONNECTION_TYPE,
......
......@@ -25,6 +25,7 @@ public class DesktopLauncher {
private static final String DESKTOP_ICON_DEVEL_16 = DESKTOP_ICON_PATH + "desktop_icon_devel_16.png";
private static final String DESKTOP_ICON_DEVEL_32 = DESKTOP_ICON_PATH + "desktop_icon_devel_32.png";
private static final String DESKTOP_ICON_DEVEL_128 = DESKTOP_ICON_PATH + "desktop_icon_devel_128.png";
private static final int MULTI_SAMPLING_2X = 2;
public static final Tablexia.SQLConnectionType SQL_CONNECTION_TYPE = new Tablexia.SQLConnectionType("org.sqlite.JDBC", "jdbc:sqlite:");
......@@ -36,6 +37,7 @@ public class DesktopLauncher {
config.resizable = buildType == null || buildType.equals(TablexiaSettings.BuildType.DEVEL.getKey());
config.width = 1280;
config.height = 800;
config.samples = MULTI_SAMPLING_2X;
if (buildType == null || buildType.equals(TablexiaSettings.BuildType.DEVEL.getKey())) {
config.addIcon(DESKTOP_ICON_DEVEL_16, Files.FileType.Internal);
......
......@@ -7,6 +7,7 @@ import org.robovm.apple.foundation.NSAutoreleasePool;
import org.robovm.apple.foundation.NSBundle;
import org.robovm.apple.foundation.NSDictionary;
import org.robovm.apple.foundation.NSString;
import org.robovm.apple.glkit.GLKViewDrawableMultisample;
import org.robovm.apple.systemconfiguration.SCNetworkReachability;
import org.robovm.apple.systemconfiguration.SCNetworkReachabilityFlags;
import org.robovm.apple.uikit.UIApplication;
......@@ -29,6 +30,7 @@ public class IOSLauncher extends IOSApplication.Delegate {
@Override
protected IOSApplication createApplication() {
IOSApplicationConfiguration config = new IOSApplicationConfiguration();
config.multisample = GLKViewDrawableMultisample._4X;
NSDictionary infoDictionary = NSBundle.getMainBundle().getInfoDictionary();
String buildType = infoDictionary.get(new NSString("cz.nic.tablexia.BuildType")).toString();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment