summaryrefslogtreecommitdiff
path: root/src/egl/drivers
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@gmail.com>2005-05-13 18:31:35 +0000
committerJon Smirl <jonsmirl@gmail.com>2005-05-13 18:31:35 +0000
commit7012d01d888d482f2c6ad1180231a482026d213a (patch)
tree426deb1a0de72921bf19851243443ab570d896f6 /src/egl/drivers
parenta6ed129dfc4ccfd898d347543f745f0b7745e31d (diff)
First attempt at getting egl support up on dumb framebuffer.
Seems to be mostly working. Not all of egl API is implemented.
Diffstat (limited to 'src/egl/drivers')
-rw-r--r--src/egl/drivers/demo/demo.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/egl/drivers/demo/demo.c b/src/egl/drivers/demo/demo.c
index e5164d657f..bb5ea19424 100644
--- a/src/egl/drivers/demo/demo.c
+++ b/src/egl/drivers/demo/demo.c
@@ -56,14 +56,14 @@ demoInitialize(_EGLDriver *drv, EGLDisplay dpy, EGLint *major, EGLint *minor)
EGLint i;
/* Create a screen */
- scrn = _eglNewScreen();
+ scrn = calloc(1, sizeof(*scrn));
_eglAddScreen(disp, scrn);
/* Create the screen's modes - silly example */
- _eglAddMode(scrn, 1600, 1200, 32, 72 * 1000);
- _eglAddMode(scrn, 1280, 1024, 32, 72 * 1000);
- _eglAddMode(scrn, 1280, 1024, 16, 72 * 1000);
- _eglAddMode(scrn, 1024, 768, 32, 72 * 1000);
+ _eglAddMode(scrn, 1600, 1200, 72 * 1000);
+ _eglAddMode(scrn, 1280, 1024, 72 * 1000);
+ _eglAddMode(scrn, 1280, 1024, 72 * 1000);
+ _eglAddMode(scrn, 1024, 768, 72 * 1000);
/* Create the display's visual configs - silly example */
for (i = 0; i < 4; i++) {