瀏覽代碼

██████ ██████

* Ah mais putain j'avais pas vu !    ██░░░░██████████████████░░░░██
                                       ██░░░░░░░░░░░░░░░░░░░░░░░░██
                                        ██░░░░███░░░░░░░░███░░░░██
                                       ██░░░░░░███░░░░░░███░░░░░░██
                                      ██░░░░░░░░░░░░░░░░░░░░░░░░░░██
                                      ██░░░░░░██████████████░░░░░░██
                                      ██░░░░░██▒▒▒▒▒▒▒▒▒▒▒▒██░░░░░██
                                      ██░░░░██▒▒▒▒██▒▒██▒▒▒▒██░░░░██
                                      ██░░░░██▒▒▒▒██▒▒██▒▒▒▒██░░░░██
                                       ██░░░░██▒▒▒▒▒▒▒▒▒▒▒▒██░░░░██
                                        ██░░░░██████████████░░░░██
                                         ███░░░░░░██████░░░░░░███
                                           █████░░░░░░░░░░█████
                                               ████████████
tags/v0.99.beta14
Sam Hocevar sam 19 年之前
父節點
當前提交
90ed6be7cb
共有 1 個檔案被更改,包括 12 行新增4 行删除
  1. +12
    -4
      caca/driver_gl.c

+ 12
- 4
caca/driver_gl.c 查看文件

@@ -30,10 +30,6 @@
# include <GL/freeglut_ext.h> # include <GL/freeglut_ext.h>
#endif #endif


#ifdef HAVE_GLUTCHECKLOOP
# define glutMainLoopEvent glutCheckLoop
#endif

#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
@@ -205,7 +201,11 @@ static int gl_init_graphics(caca_t *kk)
glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_RGB,
0, kk->drv.p->height - 16, 16, 16, 0); 0, kk->drv.p->height - 16, 16, 16, 0);


#ifdef HAVE_GLUTCHECKLOOP
glutCheckLoop();
#else
glutMainLoopEvent(); glutMainLoopEvent();
#endif
glutPostRedisplay(); glutPostRedisplay();
} }


@@ -304,7 +304,11 @@ static void gl_display(caca_t *kk)
glDisable(GL_BLEND); glDisable(GL_BLEND);
glDisable(GL_TEXTURE_2D); glDisable(GL_TEXTURE_2D);


#ifdef HAVE_GLUTCHECKLOOP
glutCheckLoop();
#else
glutMainLoopEvent(); glutMainLoopEvent();
#endif
glutSwapBuffers(); glutSwapBuffers();
glutPostRedisplay(); glutPostRedisplay();
} }
@@ -325,7 +329,11 @@ static void gl_handle_resize(caca_t *kk)


static int gl_get_event(caca_t *kk, struct caca_event *ev) static int gl_get_event(caca_t *kk, struct caca_event *ev)
{ {
#ifdef HAVE_GLUTCHECKLOOP
glutCheckLoop();
#else
glutMainLoopEvent(); glutMainLoopEvent();
#endif


if(kk->resize.resized) if(kk->resize.resized)
{ {


Loading…
取消
儲存