comparison gui/ui/actions.c @ 35799:fa803d807b58

Cosmetic: Rename variables. They are now self-explanatory.
author ib
date Sat, 26 Jan 2013 00:07:38 +0000
parents 497a1c45a597
children 6a7be705643b
comparison
equal deleted inserted replaced
35798:717a5f7995d6 35799:fa803d807b58
586 * 586 *
587 * @param name name of the skin to change to 587 * @param name name of the skin to change to
588 */ 588 */
589 void uiChangeSkin(char *name) 589 void uiChangeSkin(char *name)
590 { 590 {
591 int prev, bprev; 591 int was_menu, was_playbar;
592 592
593 prev = guiApp.menuIsPresent; 593 was_menu = guiApp.menuIsPresent;
594 bprev = guiApp.playbarIsPresent; 594 was_playbar = guiApp.playbarIsPresent;
595 595
596 mainVisible = False; 596 mainVisible = False;
597 597
598 if (skinRead(name) != 0) { 598 if (skinRead(name) != 0) {
599 if (skinRead(skinName) != 0) { 599 if (skinRead(skinName) != 0) {
602 } 602 }
603 } 603 }
604 604
605 /* reload menu window */ 605 /* reload menu window */
606 606
607 if (prev && guiApp.menuIsPresent) { 607 if (was_menu && guiApp.menuIsPresent) {
608 free(menuDrawBuffer); 608 free(menuDrawBuffer);
609 menuDrawBuffer = calloc(1, guiApp.menu.Bitmap.ImageSize); 609 menuDrawBuffer = calloc(1, guiApp.menu.Bitmap.ImageSize);
610 610
611 if (!menuDrawBuffer) { 611 if (!menuDrawBuffer) {
612 gmp_msg(MSGT_GPLAYER, MSGL_FATAL, MSGTR_NEMDB); 612 gmp_msg(MSGT_GPLAYER, MSGL_FATAL, MSGTR_NEMDB);
636 if (!guiInfo.Playing) 636 if (!guiInfo.Playing)
637 wsWindowRedraw(&guiApp.videoWindow); 637 wsWindowRedraw(&guiApp.videoWindow);
638 638
639 /* reload playbar */ 639 /* reload playbar */
640 640
641 if (bprev) 641 if (was_playbar)
642 uiPlaybarDone(); 642 uiPlaybarDone();
643 643
644 uiPlaybarInit(); 644 uiPlaybarInit();
645 645
646 /* reload main window */ 646 /* reload main window */