Skip to content

Commit

Permalink
benchmark: Swap misleading width and height variables
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Loading branch information
andersk committed Jun 6, 2015
1 parent 543f346 commit 90965f1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/examples/benchmark.cc
Expand Up @@ -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();
Expand Down

1 comment on commit 90965f1

@cgull
Copy link
Member

@cgull cgull commented on 90965f1 Jun 7, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Erm. I did that? That's impressive.

Good catch, thanks.

Please sign in to comment.