Maintenance at Wednesday, 30. June 2021, from 8:15 to 9:15
Some of the planned changes may require user action

Commit 6a03bbfb authored by Ivo Kabadshow's avatar Ivo Kabadshow
Browse files

scale progressbar computation to avoid overflow

parent d740dc3b
...@@ -101,8 +101,10 @@ ...@@ -101,8 +101,10 @@
\progressbar@tmpcounta=\insertframenumber \progressbar@tmpcounta=\insertframenumber
\progressbar@tmpcountb=\inserttotalframenumber \progressbar@tmpcountb=\inserttotalframenumber
\progressbar@tmpdim=\progressbar@pbwd \progressbar@tmpdim=\progressbar@pbwd
\divide\progressbar@tmpdim by 128
\multiply\progressbar@tmpdim by \progressbar@tmpcounta \multiply\progressbar@tmpdim by \progressbar@tmpcounta
\divide\progressbar@tmpdim by \progressbar@tmpcountb \divide\progressbar@tmpdim by \progressbar@tmpcountb
\multiply\progressbar@tmpdim by 128
\begin{tikzpicture} \begin{tikzpicture}
\draw[draw=none,fill=fzjblue] % \draw[draw=none,fill=fzjblue] %
(0pt, 0pt) rectangle ++ (\progressbar@tmpdim, \progressbar@pbht); (0pt, 0pt) rectangle ++ (\progressbar@tmpdim, \progressbar@pbht);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment