Changeset 900e1dcdd57e1755b085cca4ab7d0078e261f363
- Timestamp:
- 03/25/08 15:16:28
(4 months ago)
- Author:
- Jean-Paul Saman <jpsaman@videolan.org>
- git-committer:
- Jean-Paul Saman <jpsaman@videolan.org> 1206454588 +0100
- git-parent:
[03a19fdb07baa26dad95bdcaf2be58fbd9fab5ac]
- git-author:
- Jean-Paul Saman <jpsaman@videolan.org> 1205759969 +0100
- Message:
Refactor toolbar sizing.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r03a19fd |
r900e1dc |
|
| 45 | 45 | b_stream(0), |
|---|
| 46 | 46 | b_autoplay(1), |
|---|
| 47 | | b_show_toolbar(1), |
|---|
| 48 | | #if XP_UNIX |
|---|
| 49 | | i_control_height(45), |
|---|
| 50 | | #endif |
|---|
| | 47 | b_toolbar(0), |
|---|
| 51 | 48 | psz_target(NULL), |
|---|
| 52 | 49 | libvlc_instance(NULL), |
|---|
| … | … | |
| 61 | 58 | ,i_width((unsigned)-1) |
|---|
| 62 | 59 | ,i_height((unsigned)-1) |
|---|
| | 60 | ,i_tb_width(0) |
|---|
| | 61 | ,i_tb_height(0) |
|---|
| 63 | 62 | ,i_last_position(0) |
|---|
| 64 | 63 | #endif |
|---|
| … | … | |
| 168 | 167 | progid = argv[i]; |
|---|
| 169 | 168 | } |
|---|
| 170 | | else if( !strcmp( argn[i], "show_toolbar" ) ) |
|---|
| 171 | | { |
|---|
| 172 | | b_show_toolbar = boolValue(argv[i]); |
|---|
| | 169 | else if( !strcmp( argn[i], "toolbar" ) ) |
|---|
| | 170 | { |
|---|
| | 171 | b_toolbar = boolValue(argv[i]); |
|---|
| 173 | 172 | } |
|---|
| 174 | 173 | } |
|---|
| … | … | |
| 460 | 459 | Window control = getControlWindow(); |
|---|
| 461 | 460 | Display *p_display = ((NPSetWindowCallbackStruct *)window.ws_info)->display; |
|---|
| | 461 | unsigned int i_height = 0, i_width = 0; |
|---|
| 462 | 462 | |
|---|
| 463 | 463 | /* load icons */ |
|---|
| … | … | |
| 465 | 465 | &p_btnPlay, NULL, NULL); |
|---|
| 466 | 466 | if( p_btnPlay ) |
|---|
| 467 | | i_control_height = __MAX( i_control_height, p_btnPlay->height ); |
|---|
| 468 | | |
|---|
| | 467 | { |
|---|
| | 468 | i_height = __MAX( i_height, p_btnPlay->height ); |
|---|
| | 469 | i_width = __MAX( i_width, p_btnPlay->width ); |
|---|
| | 470 | } |
|---|
| 469 | 471 | XpmReadFileToImage( p_display, DATA_PATH "/mozilla/pause.xpm", |
|---|
| 470 | 472 | &p_btnPause, NULL, NULL); |
|---|
| 471 | 473 | if( p_btnPause ) |
|---|
| 472 | | i_control_height = __MAX( i_control_height, p_btnPause->height ); |
|---|
| 473 | | |
|---|
| | 474 | { |
|---|
| | 475 | i_height = __MAX( i_height, p_btnPause->height ); |
|---|
| | 476 | i_width = __MAX( i_width, p_btnPause->width ); |
|---|
| | 477 | } |
|---|
| 474 | 478 | XpmReadFileToImage( p_display, DATA_PATH "/mozilla/stop.xpm", |
|---|
| 475 | 479 | &p_btnStop, NULL, NULL ); |
|---|
| 476 | 480 | if( p_btnStop ) |
|---|
| 477 | | i_control_height = __MAX( i_control_height, p_btnStop->height ); |
|---|
| 478 | | |
|---|
| | 481 | { |
|---|
| | 482 | i_height = __MAX( i_height, p_btnStop->height ); |
|---|
| | 483 | i_width = __MAX( i_width, p_btnStop->width ); |
|---|
| | 484 | } |
|---|
| 479 | 485 | XpmReadFileToImage( p_display, DATA_PATH "/mozilla/time_line.xpm", |
|---|
| 480 | 486 | &p_timeline, NULL, NULL); |
|---|
| 481 | 487 | if( p_timeline ) |
|---|
| 482 | | i_control_height = __MAX( i_control_height, p_timeline->height ); |
|---|
| 483 | | |
|---|
| | 488 | { |
|---|
| | 489 | i_height = __MAX( i_height, p_timeline->height ); |
|---|
| | 490 | i_width = __MAX( i_width, p_timeline->width ); |
|---|
| | 491 | } |
|---|
| 484 | 492 | XpmReadFileToImage( p_display, DATA_PATH "/mozilla/time_icon.xpm", |
|---|
| 485 | 493 | &p_btnTime, NULL, NULL); |
|---|
| 486 | 494 | if( p_btnTime ) |
|---|
| 487 | | i_control_height = __MAX( i_control_height, p_btnTime->height ); |
|---|
| 488 | | |
|---|
| | 495 | { |
|---|
| | 496 | i_height = __MAX( i_height, p_btnTime->height ); |
|---|
| | 497 | i_width = __MAX( i_width, p_btnTime->width ); |
|---|
| | 498 | } |
|---|
| 489 | 499 | XpmReadFileToImage( p_display, DATA_PATH "/mozilla/fullscreen.xpm", |
|---|
| 490 | 500 | &p_btnFullscreen, NULL, NULL); |
|---|
| 491 | 501 | if( p_btnFullscreen ) |
|---|
| 492 | | i_control_height = __MAX( i_control_height, p_btnFullscreen->height); |
|---|
| 493 | | |
|---|
| | 502 | { |
|---|
| | 503 | i_height = __MAX( i_height, p_btnFullscreen->height ); |
|---|
| | 504 | i_width = __MAX( i_width, p_btnFullscreen->width ); |
|---|
| | 505 | } |
|---|
| 494 | 506 | XpmReadFileToImage( p_display, DATA_PATH "/mozilla/volume_max.xpm", |
|---|
| 495 | 507 | &p_btnMute, NULL, NULL); |
|---|
| 496 | 508 | if( p_btnMute ) |
|---|
| 497 | | i_control_height = __MAX( i_control_height, p_btnMute->height); |
|---|
| 498 | | |
|---|
| | 509 | { |
|---|
| | 510 | i_height = __MAX( i_height, p_btnMute->height ); |
|---|
| | 511 | i_width = __MAX( i_width, p_btnMute->width ); |
|---|
| | 512 | } |
|---|
| 499 | 513 | XpmReadFileToImage( p_display, DATA_PATH "/mozilla/volume_mute.xpm", |
|---|
| 500 | 514 | &p_btnUnmute, NULL, NULL); |
|---|
| 501 | 515 | if( p_btnUnmute ) |
|---|
| 502 | | i_control_height = __MAX( i_control_height, p_btnUnmute->height); |
|---|
| | 516 | { |
|---|
| | 517 | i_height = __MAX( i_height, p_btnUnmute->height ); |
|---|
| | 518 | i_width = __MAX( i_width, p_btnUnmute->width ); |
|---|
| | 519 | } |
|---|
| | 520 | setToolbarSize( i_width, i_height ); |
|---|
| 503 | 521 | |
|---|
| 504 | 522 | if( !p_btnPlay || !p_btnPause || !p_btnStop || !p_timeline || |
|---|
| … | … | |
| 509 | 527 | void VlcPlugin::hideToolbar() |
|---|
| 510 | 528 | { |
|---|
| | 529 | i_tb_width = i_tb_height = 0; |
|---|
| | 530 | |
|---|
| 511 | 531 | if( p_btnPlay ) XDestroyImage( p_btnPlay ); |
|---|
| 512 | 532 | if( p_btnPause ) XDestroyImage( p_btnPause ); |
|---|
| … | … | |
| 535 | 555 | int i_playing = 0; |
|---|
| 536 | 556 | bool b_mute = false; |
|---|
| 537 | | |
|---|
| | 557 | unsigned int dst_x, dst_y; |
|---|
| 538 | 558 | GC gc; |
|---|
| 539 | 559 | XGCValues gcv; |
|---|
| | 560 | #define BTN_SPACE ((unsigned int)4) |
|---|
| 540 | 561 | |
|---|
| 541 | 562 | const NPWindow& window = getWindow(); |
|---|
| … | … | |
| 571 | 592 | |
|---|
| 572 | 593 | XFillRectangle( p_display, control, gc, |
|---|
| 573 | | 0, 0, window.width, i_control_height ); |
|---|
| | 594 | 0, 0, window.width, i_tb_height ); |
|---|
| 574 | 595 | gcv.foreground = WhitePixel( p_display, 0 ); |
|---|
| 575 | 596 | XChangeGC( p_display, gc, GCForeground, &gcv ); |
|---|
| 576 | 597 | |
|---|
| 577 | 598 | /* position icons */ |
|---|
| | 599 | dst_x = 4; dst_y = 4; |
|---|
| | 600 | |
|---|
| 578 | 601 | fprintf( stderr, ">>>>>> is playing = %d\n", i_playing ); |
|---|
| 579 | 602 | if( p_btnPause && (i_playing == 1) ) |
|---|
| 580 | 603 | { |
|---|
| 581 | | XPutImage( p_display, control, gc, p_btnPause, 0, 0, 4, 14, |
|---|
| | 604 | XPutImage( p_display, control, gc, p_btnPause, 0, 0, dst_x, dst_y, |
|---|
| 582 | 605 | p_btnPause->width, p_btnPause->height ); |
|---|
| 583 | 606 | } |
|---|
| 584 | 607 | else if( p_btnPlay ) |
|---|
| 585 | 608 | { |
|---|
| 586 | | XPutImage( p_display, control, gc, p_btnPlay, 0, 0, 4, 14, |
|---|
| | 609 | XPutImage( p_display, control, gc, p_btnPlay, 0, 0, dst_x, dst_y, |
|---|
| 587 | 610 | p_btnPlay->width, p_btnPlay->height ); |
|---|
| 588 | 611 | } |
|---|
| 589 | 612 | |
|---|
| | 613 | dst_x += BTN_SPACE + ( p_btnPlay ? p_btnPlay->width : 0 ); |
|---|
| | 614 | dst_y = 4; |
|---|
| | 615 | |
|---|
| 590 | 616 | if( p_btnStop ) |
|---|
| 591 | | XPutImage( p_display, control, gc, p_btnStop, 0, 0, 39, 14, |
|---|
| | 617 | XPutImage( p_display, control, gc, p_btnStop, 0, 0, dst_x, dst_y, |
|---|
| 592 | 618 | p_btnStop->width, p_btnStop->height ); |
|---|
| | 619 | |
|---|
| | 620 | dst_x += BTN_SPACE + ( p_btnStop ? p_btnStop->width : 0 ); |
|---|
| | 621 | dst_y = 4; |
|---|
| | 622 | |
|---|
| 593 | 623 | if( p_btnFullscreen ) |
|---|
| 594 | | XPutImage( p_display, control, gc, p_btnFullscreen, 0, 0, 67, 21, |
|---|
| | 624 | XPutImage( p_display, control, gc, p_btnFullscreen, 0, 0, dst_x, dst_y, |
|---|
| 595 | 625 | p_btnFullscreen->width, p_btnFullscreen->height ); |
|---|
| 596 | 626 | |
|---|
| | 627 | dst_x += BTN_SPACE + ( p_btnFullscreen ? p_btnFullscreen->width : 0 ); |
|---|
| | 628 | dst_y = 4; |
|---|
| | 629 | |
|---|
| 597 | 630 | if( p_btnUnmute && b_mute ) |
|---|
| 598 | 631 | { |
|---|
| 599 | | XPutImage( p_display, control, gc, p_btnUnmute, 0, 0, 94, 30, |
|---|
| | 632 | XPutImage( p_display, control, gc, p_btnUnmute, 0, 0, dst_x, dst_y, |
|---|
| 600 | 633 | p_btnUnmute->width, p_btnUnmute->height ); |
|---|
| | 634 | |
|---|
| | 635 | dst_x += BTN_SPACE + ( p_btnUnmute ? p_btnUnmute->width : 0 ); |
|---|
| | 636 | dst_y = 4; |
|---|
| 601 | 637 | } |
|---|
| 602 | 638 | else if( p_btnMute ) |
|---|
| 603 | 639 | { |
|---|
| 604 | | XPutImage( p_display, control, gc, p_btnMute, 0, 0, 94, 30, |
|---|
| | 640 | XPutImage( p_display, control, gc, p_btnMute, 0, 0, dst_x, dst_y, |
|---|
| 605 | 641 | p_btnMute->width, p_btnMute->height ); |
|---|
| | 642 | |
|---|
| | 643 | dst_x += BTN_SPACE + ( p_btnMute ? p_btnMute->width : 0 ); |
|---|
| | 644 | dst_y = 4; |
|---|
| 606 | 645 | } |
|---|
| 607 | 646 | |
|---|
| 608 | 647 | if( p_timeline ) |
|---|
| 609 | | XPutImage( p_display, control, gc, p_timeline, 0, 0, 4, 4, |
|---|
| 610 | | (window.width-8), p_timeline->height ); |
|---|
| | 648 | XPutImage( p_display, control, gc, p_timeline, 0, 0, dst_x, dst_y, |
|---|
| | 649 | (window.width-(dst_x+BTN_SPACE)), p_timeline->height ); |
|---|
| 611 | 650 | |
|---|
| 612 | 651 | if( f_position > 0 ) |
|---|
| 613 | 652 | i_last_position = (((float)window.width-8.0)/100.0)*f_position; |
|---|
| | 653 | |
|---|
| 614 | 654 | if( p_btnTime ) |
|---|
| 615 | 655 | XPutImage( p_display, control, gc, p_btnTime, |
|---|
| 616 | | 0, 0, (4+i_last_position), 2, |
|---|
| | 656 | 0, 0, (dst_x+i_last_position), dst_y, |
|---|
| 617 | 657 | p_btnTime->width, p_btnTime->height ); |
|---|
| 618 | 658 | |
|---|
| r03a19fd |
r900e1dc |
|
| 112 | 112 | void hideToolbar(); |
|---|
| 113 | 113 | void redrawToolbar(); |
|---|
| | 114 | void getToolbarSize(unsigned int *width, unsigned int *height) |
|---|
| | 115 | { *width = i_tb_width; *height = i_tb_height; }; |
|---|
| | 116 | int setToolbarSize(unsigned int width, unsigned int height) |
|---|
| | 117 | { i_tb_width = width; i_tb_height = height; return 1; }; |
|---|
| 114 | 118 | #endif |
|---|
| 115 | 119 | |
|---|
| … | … | |
| 119 | 123 | int b_stream; |
|---|
| 120 | 124 | int b_autoplay; |
|---|
| 121 | | int b_show_toolbar; |
|---|
| | 125 | int b_toolbar; |
|---|
| 122 | 126 | char * psz_target; |
|---|
| 123 | 127 | |
|---|
| 124 | | #if XP_UNIX |
|---|
| 125 | | /* toolbar */ |
|---|
| 126 | | int i_control_height; |
|---|
| 127 | | #endif |
|---|
| 128 | 128 | private: |
|---|
| 129 | 129 | /* VLC reference */ |
|---|
| … | … | |
| 143 | 143 | #if XP_UNIX |
|---|
| 144 | 144 | unsigned int i_width, i_height; |
|---|
| | 145 | unsigned int i_tb_width, i_tb_height; |
|---|
| 145 | 146 | Window npvideo, npcontrol; |
|---|
| 146 | 147 | |
|---|
| r03a19fd |
r900e1dc |
|
| 365 | 365 | NPError NPP_SetWindow( NPP instance, NPWindow* window ) |
|---|
| 366 | 366 | { |
|---|
| 367 | | /* height used by bottom toolbar (pixels). 0 if hidden */ |
|---|
| 368 | | unsigned int i_toolbar_height; |
|---|
| | 367 | Window control; |
|---|
| | 368 | unsigned int i_control_height = 0, i_control_width = 0; |
|---|
| 369 | 369 | |
|---|
| 370 | 370 | if( ! instance ) |
|---|
| … | … | |
| 380 | 380 | return NPERR_NO_ERROR; |
|---|
| 381 | 381 | } |
|---|
| | 382 | control = p_plugin->getControlWindow(); |
|---|
| 382 | 383 | |
|---|
| 383 | 384 | libvlc_instance_t *p_vlc = p_plugin->getVLC(); |
|---|
| 384 | | |
|---|
| 385 | | |
|---|
| 386 | | if( p_plugin->b_show_toolbar ) |
|---|
| 387 | | { |
|---|
| 388 | | i_toolbar_height = p_plugin->i_control_height; |
|---|
| 389 | | } |
|---|
| 390 | | else |
|---|
| 391 | | { |
|---|
| 392 | | i_toolbar_height = 0; |
|---|
| 393 | | } |
|---|
| 394 | 385 | |
|---|
| 395 | 386 | /* |
|---|
| … | … | |
| 497 | 488 | |
|---|
| 498 | 489 | #ifdef XP_UNIX |
|---|
| | 490 | if( p_plugin->b_toolbar ) |
|---|
| | 491 | { |
|---|
| | 492 | p_plugin->getToolbarSize( &i_control_width, &i_control_height ); |
|---|
| | 493 | } |
|---|
| | 494 | else |
|---|
| | 495 | { |
|---|
| | 496 | i_control_height = i_control_width = 0; |
|---|
| | 497 | } |
|---|
| | 498 | |
|---|
| 499 | 499 | if( window && window->window ) |
|---|
| 500 | 500 | { |
|---|
| … | … | |
| 511 | 511 | /* create windows */ |
|---|
| 512 | 512 | Window video = XCreateSimpleWindow( p_display, parent, 0, 0, |
|---|
| 513 | | window->width, window->height - i_toolbar_height, |
|---|
| | 513 | window->width, window->height - i_control_height, |
|---|
| 514 | 514 | 0, i_blackColor, i_blackColor ); |
|---|
| 515 | 515 | Window controls = (Window) NULL; |
|---|
| 516 | | if( p_plugin->b_show_toolbar ) |
|---|
| | 516 | if( p_plugin->b_toolbar ) |
|---|
| 517 | 517 | { |
|---|
| 518 | 518 | controls = XCreateSimpleWindow( p_display, parent, |
|---|
| 519 | | 0, window->height - i_toolbar_height-1, |
|---|
| 520 | | window->width, i_toolbar_height-1, |
|---|
| | 519 | 0, window->height - i_control_height-1, |
|---|
| | 520 | window->width, i_control_height-1, |
|---|
| 521 | 521 | 0, i_blackColor, i_blackColor ); |
|---|
| 522 | 522 | } |
|---|
| … | … | |
| 791 | 791 | { |
|---|
| 792 | 792 | VlcPlugin* p_plugin = reinterpret_cast<VlcPlugin*>(closure); |
|---|
| | 793 | Window control = p_plugin->getControlWindow(); |
|---|
| 793 | 794 | const NPWindow& window = p_plugin->getWindow(); |
|---|
| 794 | 795 | GC gc; |
|---|
| 795 | 796 | XGCValues gcv; |
|---|
| 796 | | /* height used to show the bottom toolbar in non-fullscreen mode */ |
|---|
| 797 | | unsigned int i_toolbar_height; |
|---|
| 798 | | |
|---|
| 799 | | if( p_plugin->b_show_toolbar ) |
|---|
| | 797 | unsigned int i_control_height, i_control_width; |
|---|
| | 798 | |
|---|
| | 799 | if( p_plugin->b_toolbar ) |
|---|
| 800 | 800 | { |
|---|
| 801 | 801 | p_plugin->showToolbar(); |
|---|
| 802 | | i_toolbar_height = p_plugin->i_control_height; |
|---|
| | 802 | p_plugin->getToolbarSize( &i_control_width, &i_control_height ); |
|---|
| 803 | 803 | } |
|---|
| 804 | 804 | else |
|---|
| 805 | | { |
|---|
| 806 | | i_toolbar_height = 0; |
|---|
| 807 | | } |
|---|
| | 805 | i_control_height = i_control_width = 0; |
|---|
| 808 | 806 | |
|---|
| 809 | 807 | Window video = p_plugin->getVideoWindow(); |
|---|
| … | … | |
| 814 | 812 | |
|---|
| 815 | 813 | XFillRectangle( p_display, video, gc, |
|---|
| 816 | | 0, 0, window.width, window.height - i_toolbar_height); |
|---|
| | 814 | 0, 0, window.width, window.height - i_control_height); |
|---|
| 817 | 815 | |
|---|
| 818 | 816 | gcv.foreground = WhitePixel( p_display, 0 ); |
|---|
| … | … | |
| 820 | 818 | |
|---|
| 821 | 819 | XDrawString( p_display, video, gc, |
|---|
| 822 | | window.width / 2 - 40, (window.height - i_toolbar_height) / 2, |
|---|
| | 820 | window.width / 2 - 40, (window.height - i_control_height) / 2, |
|---|
| 823 | 821 | WINDOW_TEXT, strlen(WINDOW_TEXT) ); |
|---|
| 824 | 822 | XFreeGC( p_display, gc ); |
|---|
| 825 | 823 | |
|---|
| 826 | | if( p_plugin->b_show_toolbar ) |
|---|
| | 824 | if( p_plugin->b_toolbar ) |
|---|
| 827 | 825 | { |
|---|
| 828 | 826 | p_plugin->redrawToolbar(); |
|---|
| … | … | |
| 841 | 839 | int i_yPos = event->xbutton.y; |
|---|
| 842 | 840 | |
|---|
| 843 | | if( p_plugin && p_plugin->b_show_toolbar ) |
|---|
| | 841 | if( p_plugin && p_plugin->b_toolbar ) |
|---|
| 844 | 842 | { |
|---|
| 845 | 843 | libvlc_exception_t ex; |
|---|
| … | … | |
| 925 | 923 | { |
|---|
| 926 | 924 | VlcPlugin* p_plugin = reinterpret_cast<VlcPlugin*>(closure); |
|---|
| | 925 | Window control = p_plugin->getControlWindow(); |
|---|
| 927 | 926 | const NPWindow& window = p_plugin->getWindow(); |
|---|
| 928 | 927 | Window drawable = p_plugin->getVideoWindow(); |
|---|
| … | … | |
| 933 | 932 | Window base_window; |
|---|
| 934 | 933 | unsigned int i_nchildren; |
|---|
| 935 | | /* height used for the bottom control bar, 0 if hidden */ |
|---|
| 936 | | unsigned int i_toolbar_height; |
|---|
| 937 | | |
|---|
| 938 | | if( p_plugin->b_show_toolbar ) |
|---|
| 939 | | { |
|---|
| 940 | | i_toolbar_height = p_plugin->i_control_height; |
|---|
| | 934 | unsigned int i_control_height, i_control_width; |
|---|
| | 935 | |
|---|
| | 936 | if( p_plugin->b_toolbar ) |
|---|
| | 937 | { |
|---|
| | 938 | p_plugin->getToolbarSize( &i_control_width, &i_control_height ); |
|---|
| 941 | 939 | } |
|---|
| 942 | 940 | else |
|---|
| 943 | 941 | { |
|---|
| 944 | | i_toolbar_height = 0; |
|---|
| | 942 | i_control_height = i_control_width = 0; |
|---|
| 945 | 943 | } |
|---|
| 946 | 944 | |
|---|
| … | … | |
| 957 | 955 | #endif /* X11_RESIZE_DEBUG */ |
|---|
| 958 | 956 | |
|---|
| 959 | | if( ! p_plugin->setSize(window.width, (window.height - i_toolbar_height)) ) |
|---|
| | 957 | if( ! p_plugin->setSize(window.width, (window.height - i_control_height)) ) |
|---|
| 960 | 958 | { |
|---|
| 961 | 959 | /* size already set */ |
|---|
| … | … | |
| 964 | 962 | |
|---|
| 965 | 963 | i_ret = XResizeWindow( p_display, drawable, |
|---|
| 966 | | window.width, (window.height - i_toolbar_height) ); |
|---|
| | 964 | window.width, (window.height - i_control_height) ); |
|---|
| 967 | 965 | |
|---|
| 968 | 966 | #ifdef X11_RESIZE_DEBUG |
|---|
| … | … | |
| 996 | 994 | |
|---|
| 997 | 995 | i_ret = XResizeWindow( p_display, base_window, |
|---|
| 998 | | window.width, ( window.height - i_toolbar_height ) ); |
|---|
| | 996 | window.width, ( window.height - i_control_height ) ); |
|---|
| 999 | 997 | |
|---|
| 1000 | 998 | #ifdef X11_RESIZE_DEBUG |
|---|