diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-01-04 15:20:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-01-04 15:23:17 +0300 |
commit | c7eb83bc17f3465aa8c9c9aeb3998cc5882ac4ec (patch) | |
tree | c3214124d8954dd1e74a97f2d7723ac6b0bfa6c1 /source/blender/editors/include | |
parent | 3447944c3f6a9afdf608c10033f090b11c15753c (diff) |
Fix sequencer border-flickering
Offscreen viewport drawing wasn't properly restoring the theme.
Add API calls to store/restore the theme so it can be temporarily overridden.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/UI_resources.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/editors/include/UI_resources.h b/source/blender/editors/include/UI_resources.h index e6db938a1b0..d289e90c257 100644 --- a/source/blender/editors/include/UI_resources.h +++ b/source/blender/editors/include/UI_resources.h @@ -301,6 +301,11 @@ enum { struct bTheme; struct PointerRNA; +struct bThemeState { + struct bTheme *theme; + int spacetype, regionid; +}; + // THE CODERS API FOR THEMES: // sets the color @@ -360,6 +365,9 @@ void UI_SetTheme(int spacetype, int regionid); // get current theme struct bTheme *UI_GetTheme(void); +void UI_Theme_Store(struct bThemeState *theme_state); +void UI_Theme_Restore(struct bThemeState *theme_state); + // return shadow width outside menus and popups */ int UI_ThemeMenuShadowWidth(void); |