📄 lr_m.c
字号:
/***********************************************************************/
/* File: */
/* Copyright (c) 2000 ZORAN Corporation, All Rights Reserved */
/* THIS IS PROPRIETARY SOURCE CODE OF ZORAN CORPORATION */
/* */
/* =========== */
/* Descripton: */
/* =========== */
/* */
/* Log: */
/* === */
/* $Name: V_1_16 V_1_15 V_1_14 V_1_13 V_1_12 NV_1_00 V_1_11 $
/* $Header: v:/dsg/rcs/dsg/vp2k/Customer/menu/zoran/lr_m.c 1.13 2001/06/06 06:15:08 dingming Exp $
/* $Log: lr_m.c $
/* Revision 1.13 2001/06/06 06:15:08 dingming
/* font 32X24 complile
/* Revision 1.12 2000/11/18 23:07:44 charlie
/* Changed debug message from printf to rtouts
/* Revision 1.11 2000/11/17 18:54:14 charlie
/* Use C_FOCUSED
/* Revision 1.10 2000/11/09 04:07:32 cliff
/***********************************************************************/
#include <stdio.h>
#include <string.h>
#include "sysdefs.h"
#include "..\..\..\ui\menu_sys\ms_wdgt.h"
#include "..\..\..\ui\menu_sys\ms_lib.h"
#include "..\..\..\ui\menu_sys\osd_drv.h"
#include "..\..\..\decoder\osdrendr.h"
#include "..\..\..\decoder\osdlayou.h"
#ifdef FONT32X24 //DM0605
#include "..\..\..\customer\dragon\strings\strings.h"
#else
#include "..\..\..\ui\strings\strings.h"
#endif
#include "menu_var.h"
#include "..\..\..\playcore\ps\ps.h"
#include "..\..\..\playcore\coremain\coregdef.h"
#include "..\..\..\kernel\eventdef.h"
// REMINDER This is not needed if we don't use oHWLimit
#include "..\..\..\Decoder\decoder.h"
#include "lr.h"
// Static text positions
// Widget positions
static const MS_POS screen_pos = {104, MS_LINE_2, 504, MS_LINE_HEIGHT};
const MS_POS lr_choice_pos = {200, MS_LINE_0 ,296, MS_LINE_HEIGHT};
static const MS_POS dont_care_pos = {200, MS_LINE_1, 0, 0};
static const MS_STATIC mssLRMode = {
{
0,
ALIGN_LEFT,
I_COLOR,
{16, MS_LINE_0, 200, MS_LINE_HEIGHT},
NO_PARENT,
static_user_op,
},
(void *)S_LR_MODE
};
static void layout (void)
{
go_CurrentLayout.m_bBigMemMap =FALSE;// USE_BIGMEMMAP_WHEN_REQUIRED;
go_CurrentLayout.m_cPixRes = 0;
go_CurrentLayout.m_wOriginX = 0;
#ifdef FONT32X24 //DM0605
go_CurrentLayout.m_wOriginY = MS_LINE_2;
#else
go_CurrentLayout.m_wOriginY = 60;
#endif
go_CurrentLayout.m_wWidth = 720;
#ifdef FONT32X24 //DM0605
go_CurrentLayout.m_wHeight = MS_MAX_LINES_SMALLMM;
#else
go_CurrentLayout.m_wHeight = 120;
#endif
go_CurrentLayout.m_cNbrHole = 0;
go_CurrentLayout.m_cInitColor = 0;
go_CurrentLayout.m_cNbrColor = 16;
go_CurrentLayout.m_pColorPalette = (OSD_Palette *)MenuBitmapColor;
OSDSetLayout();
OSDSetFont(0);
rtouts("\nL/R MODE SCREEN LAYOUT");
}
static void on_lr_mode_close(void)
{
#ifdef NO_C_STDLIB
dbouts("L/R Mode menu closed\n");
#endif
SAFELY_DELETE(choice1);
}
void open_lr_mode(void)
{
screen = MS_create_screen((MS_POS *)&screen_pos,screen_color,0,on_lr_mode_close,layout);
#ifdef DISABLE
if ( !gtps.mKaraoke )
{
choice1 = MS_create_choice(&lr_choice_pos,i_color,&lr_nokar_list,&dont_care_pos,lr_nokar_action,MS_HOT_SPOT);
lr_nokar_choice(choice1);
}
else
if ( gcst.mAudioStream == AUDIO_STREAM_AC3 )
{
choice1 = MS_create_choice(&lr_choice_pos,i_color,&lr_kar_ac3_list,&dont_care_pos,lr_kar_ac3_action,MS_HOT_SPOT);
lr_kar_ac3_choice(choice1);
}
else
{
choice1 = MS_create_choice(&lr_choice_pos,i_color,&lr_kar_list,&dont_care_pos,lr_kar_action,MS_HOT_SPOT);
lr_kar_choice(choice1);
}
#else
choice1 = open_lr_choice(&lr_choice_pos, i_color, &dont_care_pos);
#endif // DISABLE
MS_add_item((MS_DIALOG*)screen,(MS_WIDGET*)choice1, C_FOCUSED);
MS_add_item((MS_DIALOG*)screen,(MS_WIDGET*)&mssLRMode, !C_FOCUSED);
MS_dialog_display((MS_DIALOG*)screen);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -