⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 splashdlg.c

📁 这个是boot gui的程序
💻 C
字号:
/*
 *  Start of Zoran Standard Header
 *  Copyright (c) 2005 Zoran Corporation
 *  
 *  
 *  All rights reserved.  Proprietary and confidential.
 *  
 *  DESCRIPTION for splashdlg.c
 *      Splash-screen/initialization dialog
 *  
 *  NEW HISTORY COMMENT (description must be followed by a blank line)
 *  <Enter change description here>

 *  ===== HISTORY of changes in //depot/imgeng/sw/se_gw/gui/splashdlg.c
 *  
 *  13/Dec/05 #5  dstrauss   Paint the background before dispatching 
 *                           to main menu.
 *  12/Dec/05 #4  dstrauss   Deleted uiwindows.h
 *   9/Dec/05 #3  dstrauss   Set status during initializtion; call 
 *                           GUIUpdateStatus() every tick.
 *   6/Dec/05 #2  dstrauss   Added "erase" parameter to GUIText().
 *   5/Dec/05 #1  dstrauss   Created
 *  
 *
 *  End of Zoran Standard Header
 */
#include "standard.h"

#include "vopu.h"
#include "guilocal.h"
#include "guigraphics.h"
#include "guievents.h"
#include "ledif.h"              /* low-level LED interface */
#include "dialogs.h"
#include "guistatus.h"

#include "uitypes.h"
#include "uigdi.h"

#include "splashlogo.h"

/* Local defines */

#define ALL_LEDS                                \
 (                                              \
   LEDQualityDraft                              \
   | LEDQualityNormal                           \
   | LEDQualityBest                             \
   | LEDScanTypeText                            \
   | LEDScanTypeNormal                          \
   | LEDScanTypePhoto                           \
   | LEDFaxSFine                                \
   | LEDFaxFine                                 \
   | LEDFaxNormal )

static int delay_ticks;

void * SplashDialog(unsigned int event)
{
  switch (event) {
  case GUIEVENT_REPAINT:
    delay_ticks = 0;
    LEDIFSetLEDs( ALL_LEDS, ALL_LEDS ); /* turn on all LEDs */
    GUIinitGraphics();
    GUIPaintBackground();
    GUIPaintLogo((VopuWidth() - g_SplashLogo.m_w)/2, 
                 ((VopuHeight() - 38) - g_SplashLogo.m_h)/2);
    GUISetStatus(GStatusInit);
    break;

  case GUIEVENT_TICK:
    delay_ticks++;
    /* wait at least 2 seconds before going to the next dialog */
    if (delay_ticks > (2000 / GUI_TICK_RATE)) {
      LEDIFSetLEDs( 0, ALL_LEDS ); /* turn off all LEDs */
      GUIPaintBackground();
      return ((void *)MainDialog);
    }
    GUIUpdateStatus();
    break;

  default:
    break;
  }

  return (NULL);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -