style cleanup and correct own invalid comment.

This commit is contained in:
Campbell Barton
2012-10-31 11:45:41 +00:00
parent 3406586d88
commit db8b7fcabb
4 changed files with 9 additions and 12 deletions

View File

@@ -75,12 +75,9 @@ BLI_STATIC_ASSERT(sizeof(((CustomData *)NULL)->typemap) /
typedef struct LayerTypeInfo {
int size; /* the memory size of one element of this layer's data */
/**
* name of the struct used, for file writing */
/** name of the struct used, for file writing */
const char *structname;
/**
* number of structs per element, for file writing
* (set to zero skips writing this data to disk/undo) */
/** number of structs per element, for file writing */
int structnum;
/**

View File

@@ -7144,8 +7144,8 @@ static void do_version_logic_264(ListBase *regionbase)
/* view settings for logic changed */
for (ar = regionbase->first; ar; ar = ar->next) {
if(ar->regiontype == RGN_TYPE_WINDOW) {
if (ar->v2d.keeptot==0) {
if (ar->regiontype == RGN_TYPE_WINDOW) {
if (ar->v2d.keeptot == 0) {
ar->v2d.maxzoom = 1.5f;
ar->v2d.keepzoom = V2D_KEEPZOOM | V2D_LIMITZOOM | V2D_KEEPASPECT;

View File

@@ -1593,11 +1593,11 @@ void ui_popup_block_scrolltest(uiBlock *block)
/* mark buttons overlapping arrows, if we have them */
for (bt = block->buttons.first; bt; bt = bt->next) {
if(block->flag & UI_BLOCK_CLIPBOTTOM) {
if (block->flag & UI_BLOCK_CLIPBOTTOM) {
if (bt->rect.ymin < block->rect.ymin + 12)
bt->flag |= UI_SCROLLED;
}
if(block->flag & UI_BLOCK_CLIPTOP) {
if (block->flag & UI_BLOCK_CLIPTOP) {
if (bt->rect.ymax > block->rect.ymax - 12)
bt->flag |= UI_SCROLLED;
}