Mercurial > emacs
changeset 35287:28e0cac22fbd
(x_produce_image_glyph, x_draw_image_foreground)
(x_draw_image_relief, x_draw_image_foreground_1)
(x_draw_image_glyph_string): Adapt to change of image margins.
(w32_fill_rect, w32_read_socket, x_bitmap_icon)
(x_new_fontset, x_calc_absolute_position, x_iconify_frame):
Add parentheses.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Sat, 13 Jan 2001 00:01:51 +0000 |
parents | fcd8120b294a |
children | 912ea0b8e09b |
files | src/w32term.c |
diffstat | 1 files changed, 22 insertions(+), 41 deletions(-) [+] |
line wrap: on
line diff
--- a/src/w32term.c Sat Jan 13 00:00:26 2001 +0000 +++ b/src/w32term.c Sat Jan 13 00:01:51 2001 +0000 @@ -510,7 +510,6 @@ RECT * lprect; { HBRUSH hb; - RECT rect; hb = CreateSolidBrush (pix); FillRect (hdc, lprect, hb); @@ -1353,6 +1352,16 @@ } +static BOOL +w32_use_unicode_for_codepage (codepage) + int codepage; +{ + /* If the current codepage is supported, use Unicode for output. */ + return (w32_enable_unicode_output + && codepage != CP_8BIT + && (codepage == CP_UNICODE || IsValidCodePage (codepage))); +} + /* Encode CHAR2B using encoding information from FONT_INFO. CHAR2B is the two-byte form of C. Encoding is returned in *CHAR2B. */ @@ -1694,8 +1703,8 @@ prepare_image_for_display (it->f, img); it->ascent = it->phys_ascent = image_ascent (img, face); - it->descent = it->phys_descent = img->height + 2 * img->margin - it->ascent; - it->pixel_width = img->width + 2 * img->margin; + it->descent = it->phys_descent = img->height + 2 * img->vmargin - it->ascent; + it->pixel_width = img->width + 2 * img->hmargin; it->nglyphs = 1; @@ -2547,17 +2556,6 @@ -BOOL -w32_use_unicode_for_codepage (codepage) - int codepage; -{ - /* If the current codepage is supported, use Unicode for output. */ - return (w32_enable_unicode_output - && codepage != CP_8BIT - && (codepage == CP_UNICODE || IsValidCodePage (codepage))); -} - - /*********************************************************************** Glyph display ***********************************************************************/ @@ -3137,8 +3135,6 @@ struct frame *f; int *left, *right; { - int c; - *left = *right = 0; if (glyph->type == CHAR_GLYPH) @@ -3819,11 +3815,8 @@ /* If there is a margin around the image, adjust x- and y-position by that margin. */ - if (s->img->margin) - { - x += s->img->margin; - y += s->img->margin; - } + x += s->img->hmargin; + y += s->img->vmargin; SaveDC (s->hdc); @@ -3924,11 +3917,8 @@ /* If there is a margin around the image, adjust x- and y-position by that margin. */ - if (s->img->margin) - { - x += s->img->margin; - y += s->img->margin; - } + x += s->img->hmargin; + y += s->img->vmargin; if (s->hl == DRAW_IMAGE_SUNKEN || s->hl == DRAW_IMAGE_RAISED) @@ -3975,11 +3965,8 @@ /* If there is a margin around the image, adjust x- and y-position by that margin. */ - if (s->img->margin) - { - x += s->img->margin; - y += s->img->margin; - } + x += s->img->hmargin; + y += s->img->vmargin; if (s->img->pixmap) { @@ -4078,7 +4065,7 @@ | s->face->box | | +------------------------- - | | s->img->margin + | | s->img->vmargin | | | | +------------------- | | | the image @@ -4091,7 +4078,6 @@ { int x, y; int box_line_width = s->face->box_line_width; - int margin = s->img->margin; int height; HBITMAP pixmap = 0; @@ -4102,7 +4088,8 @@ flickering. */ s->stippled_p = s->face->stipple != 0; if (height > s->img->height - || margin + || s->img->vmargin + || s->img->hmargin #if 0 /* TODO: image mask */ || s->img->mask #endif @@ -5816,7 +5803,6 @@ { if (! FRAME_W32_P (frame)) return; - x_frame_rehighlight (FRAME_W32_DISPLAY_INFO (frame)); } @@ -8263,7 +8249,7 @@ && XFASTINT (XWINDOW (f->tool_bar_window)->height)) { Lisp_Object window; - int p, x, y; + int p; /* Set x and y. */ window = window_from_coordinates (f, @@ -9247,8 +9233,6 @@ struct frame *f; Lisp_Object icon; { - int mask, bitmap_id; - Window icon_window; HANDLE hicon; if (FRAME_W32_WINDOW (f) == 0) @@ -9353,7 +9337,6 @@ { int fontset = fs_query_fontset (build_string (fontsetname), 0); Lisp_Object result; - char *fontname; if (fontset < 0) return Qnil; @@ -9470,7 +9453,6 @@ x_calc_absolute_position (f) struct frame *f; { - Window child; POINT pt; int flags = f->output_data.w32->size_hint_flags; @@ -9908,7 +9890,6 @@ x_iconify_frame (f) struct frame *f; { - int result; Lisp_Object type; /* Don't keep the highlight on an invisible frame. */