#include <stdio.h>
#include <ecore_x.h>
int main()
{
ecore_x_init(0);
Ecore_X_Screen* screen = ecore_x_default_screen_get();
if (!screen) {
printf("Error\n");
}
int w, h;
ecore_x_screen_size_get(screen, &w, &h);
printf("%d, %d\n", w, h);
return 0;
}
ecore_x_init이 되어있지 않으면
ecore_x_default_screen은 crash가 난다.
반응형
'개발' 카테고리의 다른 글
| CMake build with ninja (1) | 2012.09.25 |
|---|---|
| Simple event test(mouse down/focus) using Evas (0) | 2012.09.03 |
| [Elementary] 기본 코드 (0) | 2012.08.04 |
| commit.template - default commit message (2) | 2012.07.12 |
| java.io.IOException: EOF 와 함께 실행이 안되는 문제 (1) | 2012.06.24 |