From d34139fb4d65af6b4f3d72f0b3aa27622463f4a7 Mon Sep 17 00:00:00 2001 From: Marrub Date: Tue, 18 Oct 2016 19:39:30 -0400 Subject: [PATCH] Context: Change unnamed structs to Lth_IVec2 --- lithos_c/inc/Lth_context.h | 4 ++-- lithos_c/inc/Lth_types.h | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lithos_c/inc/Lth_context.h b/lithos_c/inc/Lth_context.h index b005791..d302c64 100644 --- a/lithos_c/inc/Lth_context.h +++ b/lithos_c/inc/Lth_context.h @@ -35,13 +35,13 @@ typedef struct Lth_Context { struct { Lth_Rect rects[16]; int num; } clip; - struct { int x, y; } lastmap; struct { Lth_LinkList *head, *tail; } map; + Lth_IVec2 lastmap; int w, h; Lth_HIDRange hid; - struct { int x, y; } mapspace; + Lth_IVec2 mapspace; } Lth_Context; diff --git a/lithos_c/inc/Lth_types.h b/lithos_c/inc/Lth_types.h index 92d2cef..f6fdb9f 100644 --- a/lithos_c/inc/Lth_types.h +++ b/lithos_c/inc/Lth_types.h @@ -41,6 +41,14 @@ typedef struct Lth_Rect int w, h; } Lth_Rect; +// +// Lth_IVec2 +// +typedef struct Lth_IVec2 +{ + int x, y; +} Lth_IVec2; + // // Lth_HIDRange //