fix header guard & typo

This commit is contained in:
idea4good
2019-08-19 16:03:27 +08:00
parent c9bbae7292
commit 7016b1c420
26 changed files with 59 additions and 59 deletions

View File

@@ -1,5 +1,5 @@
#ifndef API_H
#define API_H
#ifndef GUILITE_CORE_INCLUDE_API_H
#define GUILITE_CORE_INCLUDE_API_H
#define REAL_TIME_TASK_CYCLE_MS 50
@@ -13,14 +13,14 @@
#define GL_RGB_32_to_16(rgb) (((((unsigned int)(rgb)) & 0xFF) >> 3) | ((((unsigned int)(rgb)) & 0xFC00) >> 5) | ((((unsigned int)(rgb)) & 0xF80000) >> 8))
#define GL_RGB_16_to_32(rgb) ((0xFF << 24) | ((((unsigned int)(rgb)) & 0x1F) << 3) | ((((unsigned int)(rgb)) & 0x7E0) << 5) | ((((unsigned int)(rgb)) & 0xF800) << 8))
#define ALIGN_HCENTER 0x00000000L
#define ALIGN_LEFT 0x01000000L
#define ALIGN_RIGHT 0x02000000L
#define ALIGN_HMASK 0x03000000L
#define ALIGN_VCENTER 0x00000000L
#define ALIGN_TOP 0x00100000L
#define ALIGN_BOTTOM 0x00200000L
#define ALIGN_HCENTER 0x00000000L
#define ALIGN_LEFT 0x01000000L
#define ALIGN_RIGHT 0x02000000L
#define ALIGN_HMASK 0x03000000L
#define ALIGN_VCENTER 0x00000000L
#define ALIGN_TOP 0x00100000L
#define ALIGN_BOTTOM 0x00200000L
#define ALIGN_VMASK 0x00300000L
typedef struct

View File

@@ -1,5 +1,5 @@
#ifndef AUDIO_MANGE_H
#define AUDIO_MANGE_H
#ifndef GUILITE_CORE_INCLUDE_AUDIO_H
#define GUILITE_CORE_INCLUDE_AUDIO_H
enum AUDIO_TYPE
{

View File

@@ -1,5 +1,5 @@
#ifndef BITMAP_UNIT_H
#define BITMAP_UNIT_H
#ifndef GUILITE_CORE_INCLUDE_BITMAP_H
#define GUILITE_CORE_INCLUDE_BITMAP_H
#define DEFAULT_MASK_COLOR 0xFF080408
class c_surface;

View File

@@ -1,5 +1,5 @@
#ifndef CMD_TARGET_H
#define CMD_TARGET_H
#ifndef GUILITE_CORE_INCLUDE_CMD_TARGET_H
#define GUILITE_CORE_INCLUDE_CMD_TARGET_H
class c_cmd_target;

View File

@@ -1,5 +1,5 @@
#ifndef DISPLAY_H
#define DISPLAY_H
#ifndef GUILITE_CORE_INCLUDE_DISPLAY_H
#define GUILITE_CORE_INCLUDE_DISPLAY_H
#define SURFACE_CNT_MAX 6//root + pages

View File

@@ -1,5 +1,5 @@
#ifndef MSG_H
#define MSG_H
#ifndef GUILITE_CORE_INCLUDE_MSG_H
#define GUILITE_CORE_INCLUDE_MSG_H
typedef struct
{

View File

@@ -1,5 +1,5 @@
#ifndef RECT_H
#define RECT_H
#ifndef GUILITE_CORE_INCLUDE_RECT_H
#define GUILITE_CORE_INCLUDE_RECT_H
class c_rect
{

View File

@@ -1,5 +1,5 @@
#ifndef RESOURCE_H
#define RESOURCE_H
#ifndef GUILITE_CORE_INCLUDE_RESOURCE_H
#define GUILITE_CORE_INCLUDE_RESOURCE_H
//BITMAP
typedef struct struct_bitmap_info

View File

@@ -1,5 +1,5 @@
#ifndef SURFACE_H
#define SURFACE_H
#ifndef GUILITE_CORE_INCLUDE_SURFACE_H
#define GUILITE_CORE_INCLUDE_SURFACE_H
class c_frame_layer
{
@@ -47,7 +47,7 @@ public:
fill_rect(rect.m_left, rect.m_top, rect.m_right, rect.m_bottom, rgb, z_order);
}
int flush_scrren(int left, int top, int right, int bottom);
int flush_screen(int left, int top, int right, int bottom);
bool is_valid(c_rect rect);
bool is_active() { return m_is_active; }
c_display* get_display() { return m_display; }

View File

@@ -1,5 +1,5 @@
#ifndef MY_RESOURCE_H
#define MY_RESOURCE_H
#ifndef GUILITE_CORE_INCLUDE_THEME_H
#define GUILITE_CORE_INCLUDE_THEME_H
typedef struct struct_font_info FONT_INFO;
typedef struct struct_color_rect COLOR_RECT;

View File

@@ -1,5 +1,5 @@
#ifndef WND_H
#define WND_H
#ifndef GUILITE_CORE_INCLUDE_WND_H
#define GUILITE_CORE_INCLUDE_WND_H
typedef struct struct_font_info FONT_INFO;
typedef struct struct_color_rect COLOR_RECT;

View File

@@ -1,5 +1,5 @@
#ifndef WORD_UNIT_H
#define WORD_UNIT_H
#ifndef GUILITE_CORE_INCLUDE_WORD_H
#define GUILITE_CORE_INCLUDE_WORD_H
class c_surface;
class c_word