📄 osddemo.c
字号:
/*
* osddemo.c Ver 0.0
*
* (c) Copyright ChangHong NetWork Co. Ltd, MianYang PRC, 2004.8.19
*
* Source file name : osddemo.c
* Author : Robert ChengZhiJun ( czj_robert@sohu.com )
*
* Original Work : none
*
* Introduction :
* This file is for the main function!
*
* =======================
* IMPROVEMENTS THOUGHT OF
* =======================
*
* =====================
* MODIFICATION HISTORY
* =====================
*
* Date Initials Modification
* ---- -------- ------------
*
*
*/
/*{{{ Includes*/
/*
* The system header files
*/
#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
#include <dos.h>
#include <time.h> /*czj040819 add this for "key.c" header files*/
/*}}}*/
/*
* init graph hardware system
* set front and back color to test it
*/
void init_graph ( )
{
int graphdriver = DETECT;
int graphmode;
initgraph ( &graphdriver, &graphmode, "" );
/*czj040819 ::: add this in order to test the hardware*/
#if 0
setbkcolor ( BLUE );
setcolor ( BLUE );
#endif
}
/*{{{ Includes*/
/*
* The user header files
*/
/*
* put them here because of TURBO C compiler
*/
#include "key.c"
#include "hl_stosd.c"
#include "vusif.c"
/*}}}*/
main ( )
{
/*
* init graph harddware system
* set front and back color to test it
*/
init_graph ( );
/*czj040820 for testing the APIs*/
#if 0
{
int ReturnValue;
int Handle;
#if 0
setcolor ( BLUE );
rectangle ( 200, 10, 300, 110 );
#endif
#if 0
ReturnValue = HL_STOSD_DrawFilledRectangle (
Handle,
200, 10,
100, 100,
BLUE
);
#endif
#if 0
ReturnValue = STOSD_SetPixel (
Handle,
10,
10,
RED
);
#endif
#if 0
ReturnValue = HL_STOSD_DrawLine (
Handle,
0, 0,
100, 100,
RED
);
#endif
#if 0
ReturnValue = HL_STOSD_DrawCircle (
Handle,
100, 100,
30,
RED
);
#endif
#if 0
ReturnValue = HL_STOSD_DrawFilledCircle (
Handle,
100, 100,
30,
RED
);
#endif
#if 0
ReturnValue = HL_STOSD_DrawText (
Handle,
"I am Robert",
1,
100,
100,
RED,
1,
1
);
#endif
getchar ( );
}
#endif
/*czj040823 for main MENU*/
#if 1
DVBUsifProcess ( );
#endif
/*
* clear the device
*/
cleardevice ( );
closegraph ( );
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -