mirror of
https://gitea.sffnetwork.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-11-22 10:29:48 +00:00
server compilable
This commit is contained in:
parent
cbd81b47ce
commit
a45c01d013
96 changed files with 3344 additions and 7975 deletions
16
src/platform/win32/AppPlatform_win32.cpp
Executable file
16
src/platform/win32/AppPlatform_win32.cpp
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#include "AppPlatform_win32.h"
|
||||
#include "util/Mth.h"
|
||||
|
||||
int AppPlatform_win32::getScreenWidth() { return 854; }
|
||||
int AppPlatform_win32::getScreenHeight() { return 480; }
|
||||
|
||||
float AppPlatform_win32::getPixelsPerMillimeter() {
|
||||
// assuming 24" @ 1920x1200
|
||||
const int w = 1920;
|
||||
const int h = 1200;
|
||||
const float pixels = Mth::sqrt(w*w + h*h);
|
||||
const float mm = 24 * 25.4f;
|
||||
return pixels / mm;
|
||||
}
|
||||
|
||||
bool AppPlatform_win32::supportsTouchscreen() { return true; }
|
||||
Loading…
Add table
Add a link
Reference in a new issue