projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8282185
)
st/xorg: Proper calculation of screen pitch.
author
Michel Dänzer
<daenzer@vmware.com>
Mon, 4 Jan 2010 12:04:05 +0000
(13:04 +0100)
committer
Michel Dänzer
<daenzer@vmware.com>
Mon, 4 Jan 2010 12:04:05 +0000
(13:04 +0100)
src/gallium/state_trackers/xorg/xorg_driver.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/xorg/xorg_driver.c
b/src/gallium/state_trackers/xorg/xorg_driver.c
index 4d169a1d14caa285f020bb44d97f9bef71c24bc0..b02fe68f313aee83aab0bf1488db8a5892ee4a65 100644
(file)
--- a/
src/gallium/state_trackers/xorg/xorg_driver.c
+++ b/
src/gallium/state_trackers/xorg/xorg_driver.c
@@
-181,8
+181,7
@@
drv_crtc_resize(ScrnInfoPtr pScrn, int width, int height)
if (!pScreen->ModifyPixmapHeader(rootPixmap, width, height, -1, -1, -1, NULL))
return FALSE;
- /* HW dependent - FIXME */
- pScrn->displayWidth = pScrn->virtualX;
+ pScrn->displayWidth = rootPixmap->devKind / (rootPixmap->drawable.bitsPerPixel / 8);
/* now create new frontbuffer */
return ms->create_front_buffer(pScrn) && ms->bind_front_buffer(pScrn);