Hardware screen resolution X/Y for Blackberry

This commit is contained in:
Daniel Uranga
2015-06-23 13:26:26 -03:00
parent 46958400ba
commit dee2821dc9

View File

@@ -9,6 +9,7 @@
#include <string>
#include <vector>
#include <stdio.h>
#include <SDL.h>
#include <bps/orientation.h>
#include <bps/bps.h>
@@ -29,19 +30,16 @@ namespace nme {
double CapabilitiesGetScreenResolutionX() {
return 1024;
const SDL_VideoInfo* info = SDL_GetVideoInfo();
return info->current_w;
}
double CapabilitiesGetScreenResolutionY() {
return 600;
const SDL_VideoInfo* info = SDL_GetVideoInfo();
return info->current_h;
}
double CapabilitiesGetScreenDPI() {
return 170;