Skip to content

Commit

Permalink
Fix some minor typos
Browse files Browse the repository at this point in the history
  • Loading branch information
qsantos authored and stefanhaustein committed Mar 23, 2024
1 parent 84a3616 commit 92cf12d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/tiv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ usage: tiv [options] <image> [<image>...]
-0 : No block character adjustment, always use top half block char.
-2, --256 : Use 256-bit colors. Needed to display properly on macOS Terminal.
-c <num> : Number of thumbnail columns in 'dir' mode (3 by default).
-d, --dir : Force 'dir' mode. Automatially selected for more than one input.
-d, --dir : Force 'dir' mode. Automatically selected for more than one input.
-f, --full: Force 'full' mode. Automatically selected for one input.
--help : Display this help text.
-h <num> : Set the maximum output height to <num> lines.
Expand All @@ -216,7 +216,7 @@ int main(int argc, char *argv[]) {
bool detectSize = true;

// Platform-specific implementations for determining console size, better
// implementations are welcome Fallback sizes when unsuccesful
// implementations are welcome Fallback sizes when unsuccessful
int maxWidth = 80;
int maxHeight = 24;

Expand Down Expand Up @@ -307,7 +307,7 @@ int main(int argc, char *argv[]) {
CONSOLE_SCREEN_BUFFER_INFO w;
if (GetConsoleScreenBufferInfo(
GetStdHandle(STD_OUTPUT_HANDLE),
&w)) { // just like powershell, but without the hyphens, hooray
&w)) { // just like PowerShell, but without the hyphens, hooray
maxWidth = w.dwSize.X * 4;
maxHeight = w.dwSize.Y * 8;
} else {
Expand All @@ -334,7 +334,7 @@ int main(int argc, char *argv[]) {
image.resize(new_size.width, new_size.height, -100, -100,
5);
}
// the acutal magic which generates the output
// the actual magic which generates the output
printImage(image, flags);
} catch (cimg_library::CImgIOException &e) {
std::cerr << "Error: '" << filename
Expand Down
2 changes: 1 addition & 1 deletion src/tiv_lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
const int END_MARKER = 0;

// An interleaved map of 4x8 bit character bitmaps (each hex digit represents a
// row) to the corresponding unicode character code point.
// row) to the corresponding Unicode character code point.
constexpr unsigned int BITMAPS[] = {
0x00000000, 0x00a0, 0,

Expand Down

0 comments on commit 92cf12d

Please sign in to comment.