Page MenuHomeFreeBSD

loader: Fix 0 vs 1 confusion for column numbers
ClosedPublic

Authored by imp on Sep 24 2024, 5:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 9, 3:50 AM
Unknown Object (File)
Wed, Oct 8, 4:10 PM
Unknown Object (File)
Sun, Oct 5, 11:38 AM
Unknown Object (File)
Sun, Oct 5, 5:38 AM
Unknown Object (File)
Fri, Oct 3, 3:25 AM
Unknown Object (File)
Tue, Sep 16, 11:30 PM
Unknown Object (File)
Aug 26 2025, 5:45 AM
Unknown Object (File)
Aug 25 2025, 11:46 PM
Subscribers

Details

Summary

In two places we use '0' for a column number. However, the upper left
hand corner of the screen is 1, 1. Fix those two confusions. Also, fix
a comment that flipped the coordinates in a comment (I'm used to the
vt100 convention where it's row, column (eg y, x)) and didn't notice
the rest of the code uses x, y.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable