I cant get it right. All my panels are displayed at the correct ratio but not the 3D objects.

Here's my code:

desktopWidth = sys_metrics(0);
desktopHeight = sys_metrics(1);
video_set(desktopWidth,desktopHeight,0,1);
camera.aspect=(screen_size.y/screen_size.x)/(desktopHeight/desktopWidth);

BTW, doesn't it same between screen_size.y vs desktopHeight?