comparison libvo/vo_directfb2.c @ 15212:05aa13cdf92f

replace VO and VF numeric flags with #defined identifiers
author henry
date Mon, 18 Apr 2005 15:52:38 +0000
parents e047e70a9767
children f0aa0931feb3
comparison
equal deleted inserted replaced
15211:d42f22a1503b 15212:05aa13cdf92f
522 } 522 }
523 523
524 #define CONFIG_ERROR -1 524 #define CONFIG_ERROR -1
525 525
526 static uint32_t config(uint32_t s_width, uint32_t s_height, uint32_t d_width, 526 static uint32_t config(uint32_t s_width, uint32_t s_height, uint32_t d_width,
527 uint32_t d_height, uint32_t fullscreen, char *title, 527 uint32_t d_height, uint32_t flags, char *title,
528 uint32_t format) 528 uint32_t format)
529 { 529 {
530 /* 530 /*
531 * (Locals) 531 * (Locals)
532 */ 532 */
533 533
534 // decode flags 534 // decode flags
535 535
536 int fs = fullscreen & 0x01; 536 int fs = flags & VOFLAG_FULLSCREEN;
537 int vm = fullscreen & 0x02; 537 int vm = flags & VOFLAG_MODESWITCHING;
538 int zoom = fullscreen & 0x04; 538 int zoom = flags & VOFLAG_SWSCALE;
539 int flip = fullscreen & 0x08; 539 int flip = flags & VOFLAG_FLIPPING;
540 540
541 DFBSurfaceDescription dsc; 541 DFBSurfaceDescription dsc;
542 DFBResult ret; 542 DFBResult ret;
543 DFBDisplayLayerConfig dlc; 543 DFBDisplayLayerConfig dlc;
544 DFBSurfaceCapabilities caps; 544 DFBSurfaceCapabilities caps;