diff options
author | Ton Roosendaal <ton@blender.org> | 2009-01-11 21:35:16 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-01-11 21:35:16 +0300 |
commit | 87d5d0aa1030e608c196b4105ff220061814c85d (patch) | |
tree | 483e2742fe66cd3ce8d3babb736791ccd6848fba /source/blender/makesdna | |
parent | fd4c399a8704e36b2612765c33d8bd765e031462 (diff) |
2.5
Testing commit; this puts back support for swap-exchange graphics
cards, which I had hoped to have faded out... but it appears it
still does it for intel and some atis.
This only swap-exchanges properly for areas/regions, not for
menus or the 'action zone triange'. Let's see if it works!
You enable it with starting with commandline option -E
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_screen_types.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/source/blender/makesdna/DNA_screen_types.h b/source/blender/makesdna/DNA_screen_types.h index 454ebd4873e..5f49e0ffeee 100644 --- a/source/blender/makesdna/DNA_screen_types.h +++ b/source/blender/makesdna/DNA_screen_types.h @@ -55,7 +55,8 @@ typedef struct bScreen { short do_draw; /* notifier for drawing edges */ short do_refresh; /* notifier for scale screen, changed screen, etc */ short do_gesture; /* notifier for gesture draw. */ - short pad[3]; + short swap; /* indicator to survive swap-exchange systems */ + short pad[2]; short mainwin; /* screensize subwindow, for screenedges and global menus */ short subwinactive; /* active subwindow */ @@ -136,7 +137,7 @@ typedef struct ARegion { float fsize; /* current split size in float */ short do_draw; /* private, cached notifier events */ - short pad; + short swap; /* private, indicator to survive swap-exchange */ int pad1; struct ARegionType *type; /* callbacks for this region type */ @@ -149,6 +150,11 @@ typedef struct ARegion { void *regiondata; /* XXX 2.50, need spacedata equivalent? */ } ARegion; +/* swap */ +#define WIN_BACK_OK 1 +#define WIN_FRONT_OK 2 +#define WIN_EQUAL 3 + /* area->flag */ #define HEADER_NO_PULLDOWN 1 #define AREA_FLAG_DRAWJOINTO 2 @@ -168,11 +174,6 @@ typedef struct ARegion { #define SCREENFULL 1 #define SCREENAUTOPLAY 2 -/* sa->win_swap */ -#define WIN_FRONT_OK 1 -#define WIN_BACK_OK 2 -#define WIN_EQUAL 3 - /* Panel->snap - for snapping to screen edges */ #define PNL_SNAP_NONE 0 #define PNL_SNAP_TOP 1 |