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