From 90965f175f97d60a1de4f2c78bd7a00dd34f64fd Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sat, 6 Jun 2015 13:53:05 -0400 Subject: [PATCH] benchmark: Swap misleading width and height variables Signed-off-by: Anders Kaseorg --- src/examples/benchmark.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/examples/benchmark.cc b/src/examples/benchmark.cc index aa39269..e844a18 100644 --- a/src/examples/benchmark.cc +++ b/src/examples/benchmark.cc @@ -65,19 +65,19 @@ using namespace Terminal; int main( int argc, char **argv ) { int fbmod = 0; - int height = 80, width = 24; + int width = 80, height = 24; int iterations = ITERATIONS; if (argc > 1) iterations = atoi(argv[1]); if (argc > 3) { - height = atoi(argv[2]); - width = atoi(argv[3]); + width = atoi(argv[2]); + height = atoi(argv[3]); } - Framebuffer local_framebuffers[ 2 ] = { Framebuffer(height,width), Framebuffer(height,width) }; + Framebuffer local_framebuffers[ 2 ] = { Framebuffer(width,height), Framebuffer(width,height) }; Framebuffer *local_framebuffer = &(local_framebuffers[ fbmod ]); Framebuffer *new_state = &(local_framebuffers[ !fbmod ]); Overlay::OverlayManager overlays; Display display( true ); - Complete local_terminal( height, width ); + Complete local_terminal( width, height ); /* Adopt native locale */ set_native_locale();