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