Commit 5ad8e59d authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Attempt to fix bb10 display when resolution is different thant qvga

parent 82f7e6b7
......@@ -51,8 +51,8 @@ static void bb10display_createWindow(BB10Display *d) {
int zorder = -5;
screen_set_window_property_iv(window, SCREEN_PROPERTY_ZORDER, &zorder);
int wdims[2] = { d->wsize.width, d->wsize.height };
screen_set_window_property_iv(window, SCREEN_PROPERTY_SIZE, wdims);
//int wdims[2] = { d->wsize.width, d->wsize.height };
screen_set_window_property_iv(window, SCREEN_PROPERTY_SIZE, dims);
screen_create_window_buffers(window, 1);
......@@ -139,12 +139,10 @@ static void bb10display_init(MSFilter *f) {
d->pixmap = NULL;
d->pixmap_buffer = NULL;
d->window_created = FALSE;
def_size.width = MS_VIDEO_SIZE_VGA_W;
def_size.height = MS_VIDEO_SIZE_VGA_H;
window_size.width = MS_VIDEO_SIZE_VGA_W;
window_size.height = MS_VIDEO_SIZE_VGA_H;
def_size.width = MS_VIDEO_SIZE_CIF_W;
def_size.height = MS_VIDEO_SIZE_CIF_H;
d->vsize = def_size;
d->wsize = window_size;
d->wsize = def_size;
d->window_id = NULL;
d->window_group = NULL;
d->stride = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment