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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-05-19 22:37:31 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-05-19 22:37:31 +0400
commit30142a3b92ce75bc46a6d245a36e0ca82fc6fdb4 (patch)
tree67043e5890d5ef8e40403f5a1775ca393b05376a /source/blender/src/header_info.c
parentc29a95acf9cdfcc7d10abf7603ec92d1e497c0aa (diff)
Apricot Branch
============== - Memory usage limit for undo, specified in megabytes, the default 0 means unlimited. - Multiple undo levels for image painting. Works separate from global undo similar to editmode undo, and undo for multiple images is supported.
Diffstat (limited to 'source/blender/src/header_info.c')
-rw-r--r--source/blender/src/header_info.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/src/header_info.c b/source/blender/src/header_info.c
index dac7c7bc2c6..51cfbfedb8c 100644
--- a/source/blender/src/header_info.c
+++ b/source/blender/src/header_info.c
@@ -881,7 +881,7 @@ static void do_info_filemenu(void *arg, int event)
winqueue_break= 1; /* leave queues everywhere */
BKE_reset_undo();
- BKE_write_undo("original"); /* save current state */
+ BKE_write_undo("Original"); /* save current state */
refresh_interface_font();
}
break;
@@ -2063,13 +2063,16 @@ static void info_text(int x, int y)
{
Object *ob= OBACT;
extern float hashvectf[];
- extern unsigned long mem_in_use, mmap_in_use;
+ unsigned long mem_in_use, mmap_in_use;
unsigned int swatch_color;
float fac1, fac2, fac3;
char infostr[300], memstr[64];
char *headerstr, *s;
int hsize;
+ mem_in_use= MEM_get_memory_in_use();
+ mmap_in_use= MEM_get_mapped_memory_in_use();
+
s= memstr + sprintf(memstr," | Mem:%.2fM ", ((mem_in_use-mmap_in_use)>>10)/1024.0);
if(mmap_in_use)
sprintf(s,"(%.2fM) ", ((mmap_in_use)>>10)/1024.0);