Просмотр исходного кода

* src/io.c:

+ Fixed a bug that caused ButtonRelease events to be forgotten under X11.
  * examples/cacaview.c:
    + Use <stdlib.h> instead of <malloc.h>.
tags/v0.99.beta14
Sam Hocevar sam 21 лет назад
Родитель
Сommit
731bffa99e
2 измененных файлов: 2 добавлений и 2 удалений
  1. +1
    -1
      examples/cacaview.c
  2. +1
    -1
      src/io.c

+ 1
- 1
examples/cacaview.c Просмотреть файл

@@ -25,7 +25,7 @@

#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <stdlib.h>
#include <unistd.h>

#if defined(HAVE_IMLIB2_H)


+ 1
- 1
src/io.c Просмотреть файл

@@ -110,7 +110,7 @@ unsigned int caca_get_event(void)
if(xevent.type == ButtonPress)
return CACA_EVENT_MOUSE_PRESS | 1;

if(xevent.type == ButtonPress)
if(xevent.type == ButtonRelease)
return CACA_EVENT_MOUSE_RELEASE | 1;

if(xevent.type == KeyPress)


Загрузка…
Отмена
Сохранить