aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-25 14:43:10 +0200
committerDavid Robillard <d@drobilla.net>2019-07-25 15:35:57 +0200
commit1249cf5e1081c13abb2ce7da477d3e95c6682cef (patch)
tree0968d3a505ec6cb65c1c001ee07d5b2519cb8887
parentf165aa36006476180f505ac88b61560235f765bc (diff)
downloadpugl-1249cf5e1081c13abb2ce7da477d3e95c6682cef.tar.gz
pugl-1249cf5e1081c13abb2ce7da477d3e95c6682cef.tar.bz2
pugl-1249cf5e1081c13abb2ce7da477d3e95c6682cef.zip
Improve packing of PuglViewImpl
-rw-r--r--pugl/pugl_internal_types.h29
1 files changed, 13 insertions, 16 deletions
diff --git a/pugl/pugl_internal_types.h b/pugl/pugl_internal_types.h
index 9e718ee..c065902 100644
--- a/pugl/pugl_internal_types.h
+++ b/pugl/pugl_internal_types.h
@@ -46,28 +46,25 @@ typedef struct {
/** Cross-platform view definition. */
struct PuglViewImpl {
+ PuglInternals* impl;
PuglHandle handle;
PuglEventFunc eventFunc;
-
- PuglInternals* impl;
-
char* windowClass;
PuglNativeWindow parent;
- PuglContextType ctx_type;
double start_time;
uintptr_t transient_parent;
-
- PuglHints hints;
- int width;
- int height;
- int min_width;
- int min_height;
- int min_aspect_x;
- int min_aspect_y;
- int max_aspect_x;
- int max_aspect_y;
- bool ignoreKeyRepeat;
- bool visible;
+ PuglContextType ctx_type;
+ PuglHints hints;
+ int width;
+ int height;
+ int min_width;
+ int min_height;
+ int min_aspect_x;
+ int min_aspect_y;
+ int max_aspect_x;
+ int max_aspect_y;
+ bool ignoreKeyRepeat;
+ bool visible;
};
/** Opaque surface used by draw context. */