Add platform identification (#286)

This commit is contained in:
Longri
2017-01-27 14:35:36 +01:00
committed by Emux
parent bc7c55b1f8
commit 980e9d5e54
7 changed files with 70 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
/*
* Copyright 2016 Longri
* Copyright 2016 devemux86
* Copyright 2017 Longri
*
* This program is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free Software
@@ -16,6 +17,7 @@
package org.oscim.ios.backend;
import org.oscim.backend.CanvasAdapter;
import org.oscim.backend.Platform;
import org.oscim.backend.canvas.Bitmap;
import org.oscim.backend.canvas.Canvas;
import org.oscim.backend.canvas.Paint;
@@ -34,6 +36,7 @@ public class IosGraphics extends CanvasAdapter {
public static void init() {
CanvasAdapter.init(new IosGraphics());
CanvasAdapter.platform = Platform.IOS;
}
@Override