Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2004-10-04 00:02:22 +0400
committerTon Roosendaal <ton@blender.org>2004-10-04 00:02:22 +0400
commit010200f9b552e13de5169069935ad666ca03377f (patch)
tree148b5579de55f33b459cb2ef92b5a09ca4ba6135 /source/blender/include
parentb7ac42a4c60307a6d95913bfb7a04cec55013ca6 (diff)
Fix for new UI system and vertexpaint/faceselect/weightpaint/texturepaint
If backbuffer is in use for selection codes, the system switches back to frontbuffer drawing temporally. Is easier solution now. Next commit; fix for new 'zbuffer clipped selection', which also doesnt work after using a pulldown or popup menu.
Diffstat (limited to 'source/blender/include')
-rw-r--r--source/blender/include/BIF_interface.h1
-rw-r--r--source/blender/include/interface.h9
2 files changed, 3 insertions, 7 deletions
diff --git a/source/blender/include/BIF_interface.h b/source/blender/include/BIF_interface.h
index 9f8afd76ea6..01fc74430e1 100644
--- a/source/blender/include/BIF_interface.h
+++ b/source/blender/include/BIF_interface.h
@@ -75,6 +75,7 @@ struct ScrArea;
#define UI_BLOCK_NUMSELECT 16
#define UI_BLOCK_ENTER_OK 32
#define UI_BLOCK_NOSHADOW 64
+#define UI_BLOCK_FRONTBUFFER 128
/* block->flag bits 12-15 are identical to but->flag bits */
diff --git a/source/blender/include/interface.h b/source/blender/include/interface.h
index 281e2e4be10..baa5e0d7418 100644
--- a/source/blender/include/interface.h
+++ b/source/blender/include/interface.h
@@ -41,8 +41,6 @@
#define UI_MAX_NAME_STR 64
#define UI_ARRAY 29
-
-
/* uiBut->flag */
#define UI_SELECT 1
#define UI_MOUSE_OVER 2
@@ -51,10 +49,6 @@
/* warn: rest of uiBut->flag in BIF_interface.c */
-/* block->frontbuf: (only internal here). this signals something was drawn, for flush */
-#define UI_HAS_DRAWN 1
-
-
/* internal panel drawing defines */
#define PNL_GRID 4
#define PNL_DIST 8
@@ -186,7 +180,8 @@ struct uiBlock {
int afterval, flag;
void *curfont;
- short autofill, win, winq, direction, dt, frontbuf, auto_open, pad; //frontbuf see below
+ short autofill, win, winq, direction, dt;
+ short needflush, auto_open, in_use, pad; //flush see below
void *overdraw;
float xofs, yofs; // offset to parent button