Sfoglia il codice sorgente

* 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 anni fa
parent
commit
731bffa99e
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +1
    -1
      examples/cacaview.c
  2. +1
    -1
      src/io.c

+ 1
- 1
examples/cacaview.c Vedi File

@@ -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 Vedi File

@@ -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)


Caricamento…
Annulla
Salva