From 55689ab16aa597581e7fc50b63fdb97e2e50d534 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Sun, 30 Jan 2000 18:32:14 +0000 Subject: [PATCH] (w32_term_init): Swap resx and height_in, resy and width_in. Use w32_defined_color in place of defined_color. --- src/w32term.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/w32term.c b/src/w32term.c index 0e3df61093f..dff7bf936d3 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -9608,8 +9608,8 @@ w32_term_init (display_name, xrm_option, resource_name) dpyinfo->root_window = GetDesktopWindow (); dpyinfo->n_planes = GetDeviceCaps (hdc, PLANES); dpyinfo->n_cbits = GetDeviceCaps (hdc, BITSPIXEL); - dpyinfo->height_in = GetDeviceCaps (hdc, LOGPIXELSX); - dpyinfo->width_in = GetDeviceCaps (hdc, LOGPIXELSY); + dpyinfo->resx = GetDeviceCaps (hdc, LOGPIXELSX); + dpyinfo->resy = GetDeviceCaps (hdc, LOGPIXELSY); dpyinfo->has_palette = GetDeviceCaps (hdc, RASTERCAPS) & RC_PALETTE; dpyinfo->grabbed = 0; dpyinfo->reference_count = 0; @@ -9632,8 +9632,8 @@ w32_term_init (display_name, xrm_option, resource_name) dpyinfo->w32_focus_event_frame = 0; dpyinfo->w32_highlight_frame = 0; dpyinfo->image_cache = make_image_cache (); - dpyinfo->resx = dpyinfo->height / dpyinfo->height_in; - dpyinfo->resy = dpyinfo->width / dpyinfo->width_in; + dpyinfo->height_in = dpyinfo->height / dpyinfo->resx; + dpyinfo->width_in = dpyinfo->width / dpyinfo->resy; ReleaseDC (GetDesktopWindow (), hdc); /* NTEMACS_TODO: dpyinfo->gray */ /* Determine if there is a middle mouse button, to allow parse_button @@ -9644,8 +9644,8 @@ w32_term_init (display_name, xrm_option, resource_name) /* initialise palette with white and black */ { COLORREF color; - defined_color (0, "white", &color, 1); - defined_color (0, "black", &color, 1); + w32_defined_color (0, "white", &color, 1); + w32_defined_color (0, "black", &color, 1); } #ifndef F_SETOWN_BUG -- 2.39.5