mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 01:42:30 +00:00
uniform distribution of memory progress bars
svn path=/trunk/; revision=34962
This commit is contained in:
parent
92680636ef
commit
70b5975a50
|
@ -3081,33 +3081,36 @@ FileCopyPage(PINPUT_RECORD Ir)
|
|||
TRUE,
|
||||
MUIGetString(STRING_SETUPCOPYINGFILES));
|
||||
|
||||
// fit memory bars to screen width, distribute them uniform
|
||||
unsigned int mem_bar_width = (xScreen - 26) / 5;
|
||||
mem_bar_width -= mem_bar_width % 2; // make even
|
||||
/* ATTENTION: The following progress bars are debug stuff, which should not be translated!! */
|
||||
/* Create the paged pool progress bar */
|
||||
CopyContext.MemoryBars[0] = CreateProgressBar(13,
|
||||
40,
|
||||
18,
|
||||
13 + mem_bar_width,
|
||||
43,
|
||||
10,
|
||||
13,
|
||||
44,
|
||||
FALSE,
|
||||
"Paged Memory");
|
||||
|
||||
/* Create the non paged pool progress bar */
|
||||
CopyContext.MemoryBars[1] = CreateProgressBar(28,
|
||||
CopyContext.MemoryBars[1] = CreateProgressBar((xScreen / 2)- (mem_bar_width / 2),
|
||||
40,
|
||||
33,
|
||||
(xScreen / 2) + (mem_bar_width / 2),
|
||||
43,
|
||||
24,
|
||||
(xScreen / 2)- (mem_bar_width / 2),
|
||||
44,
|
||||
FALSE,
|
||||
"Nonpaged Memory");
|
||||
|
||||
/* Create the global memory progress bar */
|
||||
CopyContext.MemoryBars[2] = CreateProgressBar(43,
|
||||
CopyContext.MemoryBars[2] = CreateProgressBar(xScreen - 13 - mem_bar_width,
|
||||
40,
|
||||
48,
|
||||
xScreen - 13,
|
||||
43,
|
||||
40,
|
||||
xScreen - 13 - mem_bar_width,
|
||||
44,
|
||||
FALSE,
|
||||
"Free Memory");
|
||||
|
|
Loading…
Reference in a new issue