comparison Discovery/Src/t3.c @ 624:930f1bbe0ac2

Development bugfix: Marker in standard t3 view drawn in wrong direction
author Ideenmodellierer
date Sun, 07 Feb 2021 22:05:32 +0100
parents 8f78faf88fc5
children 68d95049f11a
comparison
equal deleted inserted replaced
623:ba83a8ef9bad 624:930f1bbe0ac2
202 && (window->bottom > window->top) 202 && (window->bottom > window->top)
203 && (window->right > window->left)) 203 && (window->right > window->left))
204 { 204 {
205 windowWidth = window->right - window->left; 205 windowWidth = window->right - window->left;
206 206
207 if(!settingsGetPointer()->FlipDisplay) 207 start.y = 479 - BigFontSeperationTopBottom - 5;
208 { 208 stop.y =5;
209 start.y = 479 - BigFontSeperationTopBottom + 5; 209
210 stop.y = 479 - 5;
211 }
212 else
213 {
214 start.y = 479 - BigFontSeperationTopBottom - 5;
215 stop.y =5;
216 }
217 while((line <= windowWidth) && (dataIndex < datalength)) 210 while((line <= windowWidth) && (dataIndex < datalength))
218 { 211 {
219 factor = (10 * line * (long)datalength)/windowWidth; 212 factor = (10 * line * (long)datalength)/windowWidth;
220 dataIndex = factor/10; 213 dataIndex = factor/10;
221 /* check if a marker is set in the intervall which is bypassed because of data reduction */ 214 /* check if a marker is set in the intervall which is bypassed because of data reduction */