• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Android resolution rare bug

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
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]);
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...
 
Top