TwlToolsRED/build/tools/KENJCleaner/src/myFunc.h
N1363 2c40d3da3b 現行の機能をそのままに、KCVJ(DSiWare 洞窟物語)の検出機能を追加。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlToolsRED@583 7061adef-622a-194b-ae81-725974e89856
2012-06-21 06:35:03 +00:00

54 lines
2.0 KiB
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/********************************************************************/
/* myChar.h */
/* HelloWorld */
/* */
/* Copyright (C) 2003-2006 NINTENDO Co.,Ltd. */
/********************************************************************/
/*
自作関数 ヘッダ
*/
#ifndef __MY_FUNC_H__
#define __MY_FUNC_H__
#ifdef __cplusplus
extern "C" {
#endif
#include <nitro.h>
// define data ------------------------------------------------------
#define SCREEN_X_CHAR 32 // スクリーン横キャラクタ数
#define SCREEN_Y_CHAR 24 // スクリーン縦キャラクタ数
#define BG0_CHAR_BASE 0x4000
#define BG0_SCREEN_BASE 0x0000
#define PrintStringM(...) PrintString( 1, __VA_ARGS__ )
#define PrintStringS(...) PrintString( 0, __VA_ARGS__ )
#define ClearRectangleM(...) ClearRectangle( bg0BakM, __VA_ARGS__ )
#define ClearRectangleS(...) ClearRectangle( bg0BakS, __VA_ARGS__ )
#define FillRectangleM(...) FillRectangle( bg0BakM, __VA_ARGS__ )
#define FillRectangleS(...) FillRectangle( bg0BakS, __VA_ARGS__ )
// global variable---------------------------------------------------
extern u16 bg0BakM[ SCREEN_X_CHAR * SCREEN_Y_CHAR ]; // メインBG0 バックアップ
extern u16 bg0BakS[ SCREEN_X_CHAR * SCREEN_Y_CHAR ]; // サブ BG0 バックアップ
// const data--------------------------------------------------------
// function----------------------------------------------------------
void InitDispMain( void );
void InitDispSub ( void );
void PrintString( BOOL sel_lcd, s32 x, s32 y, u16 color, const char *fmt, ... ); // 64文字までの書式付き文字列を画面に出力
void ClearRectangle( u16 *pScreen, u16 pos_x, u16 pos_y, u8 width, u8 height ); // 矩形スクリーンクリア
void FillRectangle( u16 *pScreen, u16 pos_x, u16 pos_y, u8 width, u8 height, u16 code ); // 矩形スクリーンフィル
#ifdef __cplusplus
}
#endif
#endif // __MY_FUNC_H__