"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "caca/event.c" between
libcaca-0.99.beta19.tar.gz and libcaca-0.99.beta20.tar.bz2

About: libcaca is a graphics library that outputs text instead of pixels, so that it can work on older video cards or text terminals (something like an advanced AAlib library).

event.c  (libcaca-0.99.beta19):event.c  (libcaca-0.99.beta20.tar.bz2)
/* /*
* libcaca Colour ASCII-Art library * libcaca Colour ASCII-Art library
* Copyright (c) 2002-2012 Sam Hocevar <sam@hocevar.net> * Copyright (c) 2002-2016 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved * All Rights Reserved
* *
* This library is free software. It comes without any warranty, to * This library is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it * the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What the Fuck You Want * and/or modify it under the terms of the Do What the Fuck You Want
* to Public License, Version 2, as published by Sam Hocevar. See * to Public License, Version 2, as published by Sam Hocevar. See
* http://www.wtfpl.net/ for more details. * http://www.wtfpl.net/ for more details.
*/ */
/* /*
skipping to change at line 369 skipping to change at line 369
dp->resize.resized = 0; dp->resize.resized = 0;
_caca_handle_resize(dp); _caca_handle_resize(dp);
ev->type = CACA_EVENT_RESIZE; ev->type = CACA_EVENT_RESIZE;
ev->data.resize.w = caca_get_canvas_width(dp->cv); ev->data.resize.w = caca_get_canvas_width(dp->cv);
ev->data.resize.h = caca_get_canvas_height(dp->cv); ev->data.resize.h = caca_get_canvas_height(dp->cv);
return 1; return 1;
} }
ret = _lowlevel_event(dp, ev); ret = _lowlevel_event(dp, ev);
#if defined(USE_SLANG)
if(dp->drv.id != CACA_DRIVER_SLANG)
#endif
#if defined(USE_NCURSES)
if(dp->drv.id != CACA_DRIVER_NCURSES)
#endif
return ret; return ret;
#if defined(USE_SLANG) || defined(USE_NCURSES) #if defined(USE_SLANG) || defined(USE_NCURSES)
/* Simulate long keypresses using autorepeat features */ /* Simulate long keypresses using autorepeat features */
ticks = _caca_getticks(&dp->events.key_timer); ticks = _caca_getticks(&dp->events.key_timer);
dp->events.last_key_ticks += ticks; dp->events.last_key_ticks += ticks;
dp->events.autorepeat_ticks += ticks; dp->events.autorepeat_ticks += ticks;
/* Handle autorepeat */ /* Handle autorepeat */
if(dp->events.last_key_event.type if(dp->events.last_key_event.type
 End of changes. 2 change blocks. 
7 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)