summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2012-06-11 10:13:39 +0300
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-07-15 19:12:07 +0200
commitc60681561c9cf8317be4e84ac8ac2bb465e13eb0 (patch)
tree5dfb164f2ea833f603eae9a2752ee4202ef2c036 /src
parent203f579fed5e0c8a9970bfabebc84c7d84578ee5 (diff)
qxl: remove qxl_screen_t->stride
Diffstat (limited to 'src')
-rw-r--r--src/qxl.h1
-rw-r--r--src/qxl_driver.c1
-rw-r--r--src/qxl_surface.c2
3 files changed, 1 insertions, 3 deletions
diff --git a/src/qxl.h b/src/qxl.h
index 1db0581..c2d2369 100644
--- a/src/qxl.h
+++ b/src/qxl.h
@@ -158,7 +158,6 @@ struct _qxl_screen_t
int virtual_x;
int virtual_y;
void * fb;
- int stride;
struct QXLMode * current_mode;
qxl_surface_t * primary;
diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index 0df6883..90619e6 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -1125,7 +1125,6 @@ qxl_screen_init(SCREEN_INIT_ARGS_DECL)
qxl->virtual_x = pScrn->virtualX;
qxl->virtual_y = pScrn->virtualY;
- qxl->stride = pScrn->virtualX * 4;
pScrn->displayWidth = pScrn->virtualX;
diff --git a/src/qxl_surface.c b/src/qxl_surface.c
index 113f09b..e58a0d4 100644
--- a/src/qxl_surface.c
+++ b/src/qxl_surface.c
@@ -389,7 +389,7 @@ qxl_surface_cache_create_primary (surface_cache_t *cache,
host_image = pixman_image_create_bits (format,
qxl->virtual_x, qxl->virtual_y,
- qxl->fb, qxl->stride);
+ qxl->fb, mode->stride);
surface = malloc (sizeof *surface);
surface->id = 0;