Skip to content

Commit

Permalink
lstopo/windows: remove an unneeded global struct field
Browse files Browse the repository at this point in the history
Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
  • Loading branch information
bgoglin committed Jul 6, 2020
1 parent d4bd851 commit 17747f9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions utils/lstopo/lstopo-windows.c
Expand Up @@ -26,7 +26,6 @@
struct lstopo_windows_output {
struct lstopo_output *loutput;
PAINTSTRUCT ps;
HWND toplevel;
};

static struct lstopo_windows_output the_output;
Expand Down Expand Up @@ -205,7 +204,7 @@ WndProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam)

/* SetWindowPos() generates a WM_SIZE event, we don't want to scale the drawing there */
ignore_wm_size = 1;
SetWindowPos(the_output.toplevel, HWND_TOP, 0, 0, rect.right - rect.left, rect.bottom - rect.top, SWP_NOCOPYBITS|SWP_NOMOVE|SWP_NOOWNERZORDER|SWP_NOZORDER);
SetWindowPos(hwnd, HWND_TOP, 0, 0, rect.right - rect.left, rect.bottom - rect.top, SWP_NOCOPYBITS|SWP_NOMOVE|SWP_NOOWNERZORDER|SWP_NOZORDER);
ignore_wm_size = 0;

needs_resize = 0;
Expand Down Expand Up @@ -486,7 +485,6 @@ output_windows (struct lstopo_output *loutput, const char *dummy __hwloc_attribu
lstopo_prepare_custom_styles(loutput);

lstopo_show_interactive_help();
the_output.toplevel = toplevel;
ShowWindow(toplevel, SW_SHOWDEFAULT);
UpdateWindow(toplevel);

Expand Down

0 comments on commit 17747f9

Please sign in to comment.