| 200 | */ |
| 201 | |
| 202 | void |
| 203 | UpdatePageVars(void) |
| 204 | { |
| 205 | float temp; /* Swapping variable */ |
| 206 | |
| 207 | |
| 208 | switch (Orientation & 3) |
| 209 | { |
| 210 | case 0 : /* Portrait */ |
| 211 | break; |
| 212 | |
| 213 | case 1 : /* Landscape */ |
| 214 | temp = PageLeft; |
| 215 | PageLeft = PageBottom; |
| 216 | PageBottom = temp; |
| 217 | |
| 218 | temp = PageRight; |
| 219 | PageRight = PageTop; |
| 220 | PageTop = temp; |
| 221 | |
| 222 | temp = PageWidth; |
| 223 | PageWidth = PageLength; |
| 224 | PageLength = temp; |
| 225 | break; |
| 226 | |
| 227 | case 2 : /* Reverse Portrait */ |
| 228 | temp = PageWidth - PageLeft; |
| 229 | PageLeft = PageWidth - PageRight; |
| 230 | PageRight = temp; |
| 231 | |
| 232 | temp = PageLength - PageBottom; |
| 233 | PageBottom = PageLength - PageTop; |
| 234 | PageTop = temp; |
| 235 | break; |
| 236 | |
| 237 | case 3 : /* Reverse Landscape */ |
| 238 | temp = PageWidth - PageLeft; |
| 239 | PageLeft = PageWidth - PageRight; |
| 240 | PageRight = temp; |
| 241 | |
| 242 | temp = PageLength - PageBottom; |
| 243 | PageBottom = PageLength - PageTop; |
| 244 | PageTop = temp; |
| 245 | |
| 246 | temp = PageLeft; |
| 247 | PageLeft = PageBottom; |
| 248 | PageBottom = temp; |
| 249 | |
| 250 | temp = PageRight; |
| 251 | PageRight = PageTop; |
| 252 | PageTop = temp; |
| 253 | |
| 254 | temp = PageWidth; |
| 255 | PageWidth = PageLength; |
| 256 | PageLength = temp; |
| 257 | break; |
| 258 | } |
| 259 | } |
no outgoing calls
no test coverage detected