Automated update from Qt3

pull/1/head
Timothy Pearson 12 years ago
parent e863a01b9b
commit e8cbbedf46

@ -529,9 +529,14 @@ static void create_dpis()
TQ_CHECK_PTR( dpisX ); TQ_CHECK_PTR( dpisX );
TQ_CHECK_PTR( dpisY ); TQ_CHECK_PTR( dpisY );
for ( i = 0; i < screens; i++ ) { for ( i = 0; i < screens; i++ ) {
if (DisplayWidthMM(dpy,i) < 1)
dpisX[ i ] = 75; // default the dpi to 75.
else
dpisX[ i ] = (DisplayWidth(dpy,i) * 254 + DisplayWidthMM(dpy,i)*5) dpisX[ i ] = (DisplayWidth(dpy,i) * 254 + DisplayWidthMM(dpy,i)*5)
/ (DisplayWidthMM(dpy,i)*10); / (DisplayWidthMM(dpy,i)*10);
if (DisplayHeightMM(dpy,i) < 1)
dpisY[ i ] = 75; // default the dpi to 75.
else
dpisY[ i ] = (DisplayHeight(dpy,i) * 254 + DisplayHeightMM(dpy,i)*5) dpisY[ i ] = (DisplayHeight(dpy,i) * 254 + DisplayHeightMM(dpy,i)*5)
/ (DisplayHeightMM(dpy,i)*10); / (DisplayHeightMM(dpy,i)*10);
} }

Loading…
Cancel
Save