ALT Linux Bugzilla
– Attachment 2950 Details for
Bug 17311
Xrandr и Nvidia. Поворот с неправильным dpi
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Work around the DIX losing mmWidth/mmHeight for RandR 1.1 DDXen.
xorg-server-1.4.2-randr.patch (text/plain), 1.00 KB, created by
Aleksey Borisenkov
on 2008-09-25 16:30:11 MSD
(
hide
)
Description:
Work around the DIX losing mmWidth/mmHeight for RandR 1.1 DDXen.
Filename:
MIME Type:
Creator:
Aleksey Borisenkov
Created:
2008-09-25 16:30:11 MSD
Size:
1.00 KB
patch
obsolete
>diff -uprk.orig xorg-server-1.4.2.orig/hw/xfree86/common/xf86RandR.c xorg-server-1.4.2/hw/xfree86/common/xf86RandR.c >--- xorg-server-1.4.2.orig/hw/xfree86/common/xf86RandR.c 2008-06-11 19:27:40 +0500 >+++ xorg-server-1.4.2/hw/xfree86/common/xf86RandR.c 2008-09-25 16:54:51 +0500 >@@ -171,6 +171,26 @@ xf86RandRSetMode (ScreenPtr pScreen, > scrp->virtualX = mode->HDisplay; > scrp->virtualY = mode->VDisplay; > } >+ >+ /* >+ * The DIX forgets the physical dimensions we passed into RRRegisterSize, so >+ * reconstruct them if possible. >+ */ >+ if(scrp->DriverFunc) >+ { >+ xorgRRModeMM RRModeMM; >+ >+ RRModeMM.mode = mode; >+ RRModeMM.virtX = scrp->virtualX; >+ RRModeMM.virtY = scrp->virtualY; >+ RRModeMM.mmWidth = mmWidth; >+ RRModeMM.mmHeight = mmHeight; >+ >+ (*scrp->DriverFunc)(scrp, RR_GET_MODE_MM, &RRModeMM); >+ >+ mmWidth = RRModeMM.mmWidth; >+ mmHeight = RRModeMM.mmHeight; >+ } > if(randrp->rotation & (RR_Rotate_90 | RR_Rotate_270)) > { > /* If the screen is rotated 90 or 270 degrees, swap the sizes. */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 17311
: 2950