diff options
Diffstat (limited to 'src/intel.h')
-rw-r--r-- | src/intel.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel.h b/src/intel.h index e274db10..253a6bf9 100644 --- a/src/intel.h +++ b/src/intel.h @@ -560,7 +560,7 @@ intel_check_pitch_2d(PixmapPtr pixmap) { uint32_t pitch = intel_pixmap_pitch(pixmap); if (pitch > KB(32)) { - ScrnInfoPtr scrn = xf86Screens[pixmap->drawable.pScreen->myNum]; + ScrnInfoPtr scrn = xf86ScreenToScrn(pixmap->drawable.pScreen); intel_debug_fallback(scrn, "pitch exceeds 2d limit 32K\n"); return FALSE; } @@ -573,7 +573,7 @@ intel_check_pitch_3d(PixmapPtr pixmap) { uint32_t pitch = intel_pixmap_pitch(pixmap); if (pitch > KB(8)) { - ScrnInfoPtr scrn = xf86Screens[pixmap->drawable.pScreen->myNum]; + ScrnInfoPtr scrn = xf86ScreenToScrn(pixmap->drawable.pScreen); intel_debug_fallback(scrn, "pitch exceeds 3d limit 8K\n"); return FALSE; } |