Hardware screen resolution X/Y for Blackberry
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user