summaryrefslogtreecommitdiffstats
path: root/src/egl
diff options
context:
space:
mode:
authorJon Smirl <[email protected]>2005-05-14 03:49:55 +0000
committerJon Smirl <[email protected]>2005-05-14 03:49:55 +0000
commitd0ddf190aa91b58c1791625075f04f29bc05bcd4 (patch)
tree358bcb243c91c104c9123bccb36a1efcc4e75c07 /src/egl
parent5cb977fedf525f4cdc7348bbb271f32288bdd662 (diff)
Fix compile error in demo egl driver
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/drivers/demo/demo.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/egl/drivers/demo/demo.c b/src/egl/drivers/demo/demo.c
index bb5ea194248..a5cebb4afd9 100644
--- a/src/egl/drivers/demo/demo.c
+++ b/src/egl/drivers/demo/demo.c
@@ -60,27 +60,27 @@ demoInitialize(_EGLDriver *drv, EGLDisplay dpy, EGLint *major, EGLint *minor)
_eglAddScreen(disp, scrn);
/* Create the screen's modes - silly example */
- _eglAddMode(scrn, 1600, 1200, 72 * 1000);
- _eglAddMode(scrn, 1280, 1024, 72 * 1000);
- _eglAddMode(scrn, 1280, 1024, 72 * 1000);
- _eglAddMode(scrn, 1024, 768, 72 * 1000);
+ _eglAddMode(scrn, 1600, 1200, 72 * 1000, "1600x1200-72");
+ _eglAddMode(scrn, 1280, 1024, 72 * 1000, "1280x1024-70");
+ _eglAddMode(scrn, 1280, 1024, 70 * 1000, "1280x1024-70");
+ _eglAddMode(scrn, 1024, 768, 72 * 1000, "1024x768-72");
/* Create the display's visual configs - silly example */
for (i = 0; i < 4; i++) {
_EGLConfig config;
_eglInitConfig(&config, i + 1);
- SET_CONFIG_ATTRIB(&config, EGL_RED_SIZE, 8);
- SET_CONFIG_ATTRIB(&config, EGL_GREEN_SIZE, 8);
- SET_CONFIG_ATTRIB(&config, EGL_BLUE_SIZE, 8);
- SET_CONFIG_ATTRIB(&config, EGL_ALPHA_SIZE, 8);
- SET_CONFIG_ATTRIB(&config, EGL_BUFFER_SIZE, 32);
+ _eglSetConfigAtrib(&config, EGL_RED_SIZE, 8);
+ _eglSetConfigAtrib(&config, EGL_GREEN_SIZE, 8);
+ _eglSetConfigAtrib(&config, EGL_BLUE_SIZE, 8);
+ _eglSetConfigAtrib(&config, EGL_ALPHA_SIZE, 8);
+ _eglSetConfigAtrib(&config, EGL_BUFFER_SIZE, 32);
if (i & 1) {
- SET_CONFIG_ATTRIB(&config, EGL_DEPTH_SIZE, 32);
+ _eglSetConfigAtrib(&config, EGL_DEPTH_SIZE, 32);
}
if (i & 2) {
- SET_CONFIG_ATTRIB(&config, EGL_STENCIL_SIZE, 8);
+ _eglSetConfigAtrib(&config, EGL_STENCIL_SIZE, 8);
}
- SET_CONFIG_ATTRIB(&config, EGL_SURFACE_TYPE,
+ _eglSetConfigAtrib(&config, EGL_SURFACE_TYPE,
(EGL_WINDOW_BIT | EGL_PIXMAP_BIT | EGL_PBUFFER_BIT));
_eglAddConfig(disp, &config);
}