Allow for an arbitrary margin to be specified in the console configuration. If the actual screen size does not match the requested screen size, then update any margins specified so that they remain in the same place relative to the requested screen size. If margins are unspecified (i.e. zero), then leave them as zero. The underlying assumption here is that any specified margins are likely to describe an area within a background picture, and so should remain in the same place relative to that background picture. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
391 |
|
391 |
|
392 |
|
392 |
|
393 |
|
393 |
|
394 |
|
|
|
395 |
|
|
|
396 |
|
|
|
397 |
|
|
|
|
394 |
|
|
398 |
|
395 |
|
399 |
|
396 |
|
400 |
|
|
|
401 |
|
|
|
|
397 |
|
|
402 |
|
398 |
|
403 |
|
399 |
|
|
400 |
|
|
|
401 |
|
|
|
402 |
|
|
|
403 |
|
|
|
404 |
|
|
|
405 |
|
|
404 |
|
406 |
|
405 |
|
407 |
|
406 |
|
408 |
|
|
|
||
415 |
|
417 |
|
416 |
|
418 |
|
417 |
|
419 |
|
418 |
|
|
|
419 |
|
|
|
|
420 |
|
|
|
421 |
|
|
|
422 |
|
|
420 |
|
423 |
|
421 |
|
424 |
|
422 |
|
425 |
|
|
|
||
425 |
|
428 |
|
426 |
|
429 |
|
427 |
|
430 |
|
|
431 |
|
|
|
432 |
|
|
|
433 |
|
|
|
434 |
|
|
|
435 |
|
|
|
436 |
|
|
|
437 |
|
|
|
438 |
|
|
|
439 |
|
|
|
440 |
|
|
|
441 |
|
|
|
442 |
|
|
|
443 |
|
|
|
444 |
|
|
|
445 |
|
|
|
446 |
|
|
|
447 |
|
|
|
448 |
|
|
428 |
|
449 |
|
429 |
|
450 |
|
430 |
|
451 |
|
431 |
|
452 |
|
432 |
|
453 |
|
433 |
|
454 |
|
434 |
|
|
|
|
455 |
|
|
435 |
|
456 |
|
436 |
|
457 |
|
437 |
|
458 |
|
|
|
||
494 |
|
515 |
|
495 |
|
516 |
|
496 |
|
517 |
|
497 |
|
|
|
498 |
|
|
|
|
518 |
|
|
499 |
|
519 |
|
500 |
|
520 |
|
501 |
|
521 |
|