Bug 1050

Summary: xrandr should set screen physical size to avoid incorrect dpi
Product: xorg Reporter: Aaron Plattner <aplattner>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact:
Severity: trivial    
Priority: high    
Version: unspecified   
Hardware: x86 (IA32)   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 351    
Attachments:
Description Flags
Patch to set screen physical size none

Description Aaron Plattner 2004-08-11 17:29:35 UTC
For rotation, randr needs to swap the screen's physical dimensions to avoid
changing the dpi.
Comment 1 Aaron Plattner 2004-08-11 17:33:41 UTC
Created attachment 611 [details] [review]
Patch to set screen physical size

This patch stores the screen's original physical size in the randr screen
private, uses that to set the physical size in the modes reported by xrandr,
and then uses those sizes (appropriately rotated) to set the new size on randr
events.
Comment 2 Søren Sandmann Pedersen 2004-08-13 11:28:25 UTC
Fri Aug 13 19:53:10 2004  Soeren Sandmann  <sandmann@redhat.com>

	* programs/Xserver/hw/xfree86/drivers/mga/mga_storm.c
	(MGAStormSync): Fix for lockups on some versions of Matrox
	Mystique. #687, Patch from Mike Harris.

	* programs/Xserver/hw/xfree86/common/xf86RandR.c
	(xf86RandRSetMode): Call xf86EnableDisableFBAccess though the
	function pointer instead of directly. #1041, Patch from Aaron Plattner.

	* programs/Xserver/hw/xfree86/common/xf86RandR.c: Swap the
	phsyical size of the screen when rotiation. #1050, Patch from
	Aaron Plattner.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.