1 /*---------------------------------------------------------------------------*
2   Project:  NintendoWare
3   File:     SmDef.h
4 
5   Copyright (C)2009-2010 Nintendo Co., Ltd./HAL Laboratory, Inc.  All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law.  They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13   $Revision: 1 $
14  *---------------------------------------------------------------------------*/
15 #ifndef SM_DEF_H_
16 #define SM_DEF_H_
17 
18 #include <nw/lyt.h>
19 
20 
21 #define     SM_LOWER_SCREEN_SIZE_W      (320.f)
22 #define     SM_LOWER_SCREEN_SIZE_H      (240.f)
23 #define     SM_LOWER_SCREEN_HALF_SIZE_W (160.f)
24 #define     SM_LOWER_SCREEN_HALF_SIZE_H (120.f)
25 
26 #define     SM_UPPER_SCREEN_SIZE_W    (480.f)
27 #define     SM_UPPER_SCREEN_SIZE_H    (320.f)
28 
29 #define     SM_SAFE_DELETE( ptr ) \
30      if ( ptr ){ delete ptr; ptr = NULL; } \
31 
32 #endif  // SM_DEF_H_
33