Changeset 82ca50d33fc3342f74fb4c26fe09f60ae079c7ea
- Timestamp:
- 21/01/08 17:30:36
(9 months ago)
- Author:
- Rafaël Carré <funman@videolan.org>
- git-committer:
- Rafaël Carré <funman@videolan.org> 1200933036 +0000
- git-parent:
[36d62b40229738ff1bcc1ced472cc06a2e25c686]
- git-author:
- Rafaël Carré <funman@videolan.org> 1200933036 +0000
- Message:
fix #1387 (update to new libcaca api)
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rffca54b |
r82ca50d |
|
| 4632 | 4632 | VLC_ADD_CFLAGS([caca],[`${CACA_CONFIG} --cflags`]) |
|---|
| 4633 | 4633 | VLC_ADD_LIBS([caca],[`${CACA_CONFIG} --plugin-libs`]) |
|---|
| | 4634 | AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[#include <caca.h> |
|---|
| | 4635 | caca_event_t ev;]], |
|---|
| | 4636 | [[ev.type = 0;]] |
|---|
| | 4637 | )], |
|---|
| | 4638 | [], |
|---|
| | 4639 | [AC_DEFINE(CACA_EVENT_OPAQUE, [1], ["Define if struct caca_event is opaque and must not be accessed directly"])] |
|---|
| | 4640 | ) |
|---|
| 4634 | 4641 | fi |
|---|
| 4635 | 4642 | fi |
|---|
| rb14c3b3 |
r82ca50d |
|
| 305 | 305 | |
|---|
| 306 | 306 | #ifdef CACA_API_VERSION_1 |
|---|
| | 307 | #ifdef CACA_EVENT_OPAQUE |
|---|
| | 308 | switch( caca_get_event_type( &ev ) ) |
|---|
| | 309 | #else |
|---|
| 307 | 310 | switch( ev.type ) |
|---|
| | 311 | #endif /* CACA_EVENT_OPAQUE */ |
|---|
| 308 | 312 | #else |
|---|
| 309 | 313 | switch( ev ) |
|---|
| … | … | |
| 312 | 316 | case CACA_EVENT_KEY_RELEASE: |
|---|
| 313 | 317 | #ifdef CACA_API_VERSION_1 |
|---|
| | 318 | #ifdef CACA_EVENT_OPAQUE |
|---|
| | 319 | switch( caca_get_event_key_ch( &ev ) ) |
|---|
| | 320 | #else |
|---|
| 314 | 321 | switch( ev.data.key.ch ) |
|---|
| | 322 | #endif /* CACA_EVENT_OPAQUE */ |
|---|
| 315 | 323 | #else |
|---|
| 316 | 324 | switch( ev & 0x00ffffff ) |
|---|
| … | … | |
| 335 | 343 | #ifdef CACA_API_VERSION_1 |
|---|
| 336 | 344 | case CACA_EVENT_MOUSE_MOTION: |
|---|
| 337 | | val.i_int = ev.data.mouse.x * p_vout->render.i_width |
|---|
| | 345 | val.i_int = |
|---|
| | 346 | #ifdef CACA_EVENT_OPAQUE |
|---|
| | 347 | caca_get_event_mouse_x( &ev ) |
|---|
| | 348 | #else |
|---|
| | 349 | ev.data.mouse.x |
|---|
| | 350 | #endif /* CACA_EVENT_OPAQUE */ |
|---|
| | 351 | * p_vout->render.i_width |
|---|
| 338 | 352 | / cucul_get_canvas_width( p_vout->p_sys->p_cv ); |
|---|
| 339 | 353 | var_Set( p_vout, "mouse-x", val ); |
|---|
| 340 | | val.i_int = ev.data.mouse.y * p_vout->render.i_height |
|---|
| | 354 | val.i_int = |
|---|
| | 355 | #ifdef CACA_EVENT_OPAQUE |
|---|
| | 356 | caca_get_event_mouse_y( &ev ) |
|---|
| | 357 | #else |
|---|
| | 358 | ev.data.mouse.y |
|---|
| | 359 | #endif /* CACA_EVENT_OPAQUE */ |
|---|
| | 360 | * p_vout->render.i_height |
|---|
| 341 | 361 | / cucul_get_canvas_height( p_vout->p_sys->p_cv ); |
|---|
| 342 | 362 | var_Set( p_vout, "mouse-y", val ); |
|---|