1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-29 09:44:52 +01:00

clang-format platform

This commit is contained in:
clang-format
2018-06-22 23:04:38 +02:00
committed by Hielke Morsink
parent bb3561f70b
commit 0b3edc70f2
15 changed files with 599 additions and 493 deletions

View File

@@ -9,36 +9,41 @@
#ifdef __ANDROID__
#include "platform.h"
#include "../config/Config.h"
#include "../localisation/Language.h"
#include "../util/Util.h"
#include <wchar.h>
#include <jni.h>
#include "platform.h"
#include <SDL.h>
#include <jni.h>
#include <wchar.h>
#ifndef NO_TTF
bool platform_get_font_path(TTFFontDescriptor *font, utf8 *buffer, size_t size)
bool platform_get_font_path(TTFFontDescriptor* font, utf8* buffer, size_t size)
{
STUB();
return false;
}
#endif
uint16_t platform_get_locale_language() {
uint16_t platform_get_locale_language()
{
return LANGUAGE_ENGLISH_UK;
}
uint8_t platform_get_locale_currency() {
uint8_t platform_get_locale_currency()
{
return platform_get_currency_value(NULL);
}
uint8_t platform_get_locale_measurement_format() {
uint8_t platform_get_locale_measurement_format()
{
return MEASUREMENT_FORMAT_METRIC;
}
float platform_get_default_scale() {
JNIEnv *env = static_cast<JNIEnv *>(SDL_AndroidGetJNIEnv());
float platform_get_default_scale()
{
JNIEnv* env = static_cast<JNIEnv*>(SDL_AndroidGetJNIEnv());
jobject activity = static_cast<jobject>(SDL_AndroidGetActivity());
jclass activityClass = env->GetObjectClass(activity);
@@ -52,7 +57,7 @@ float platform_get_default_scale() {
return displayScale;
}
bool platform_get_steam_path(utf8 * outPath, size_t outSize)
bool platform_get_steam_path(utf8* outPath, size_t outSize)
{
return false;
}