Micky C, on May 10 2010, 11:30 AM, said:
Take for example the 3281.jpg, the map title background: let's say i put 5 versions of this image
(corresponding to the 5 main aspect ratios). Then is it possible to add some code to eduke32 to
choose the right one to show based on the resolution selected in the video options menu ?
something like
width = getResWidth();
height = getResHeight();
ar = width / height;
switch (ar)
{
case 1.5: //3:2
load( 3281_32.jpg ); break;
case 1.78: //16:9
load( 3281_169.jpg ); break;
case 1.85: //1.85:1
load( 3281_1851.jpg ); break;
case 2.39: //2.39:1
load( 3281_2391.jpg); break;
default: //4:3 is default
load( 3281_43.jpg );
}

Help
Duke4.net
DNF #1
Duke 3D #1



