Tales
Member
Hello!
I have a problem with android resolution, there is a rare bug (maybe 1 phone on 10), but I dont know if its the phone problem or my problem, so I simply post what I put in the game and please tell me if its logic and seems to be good
I know its a strange resolution but I had very lot of problem, slobery pixel and shift screen so with this I had NO problem on my phone, but there is 15015402 different phone so...
I have a problem with android resolution, there is a rare bug (maybe 1 phone on 10), but I dont know if its the phone problem or my problem, so I simply post what I put in the game and please tell me if its logic and seems to be good
Code:
var base_w = 1500;
var base_h = 600;
var max_w = display_get_width();
var max_h = display_get_height();
var aspect = display_get_width() / display_get_height();
var VIEW_HEIGHT = min(base_h, max_h);
var VIEW_WIDTH = VIEW_HEIGHT * aspect;
view_wview[0] = floor(VIEW_WIDTH);
view_hview[0] = floor(VIEW_HEIGHT);
view_wport[0] = max_w;
view_hport[0] = max_h;
surface_resize(application_surface, view_wview[0], view_hview[0]);