mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-02 11:50:48 -08:00
Merge from emacs--rel--22
Patches applied: * emacs--rel--22 (patch 70-73) - Update from CVS 2007-07-25 Glenn Morris <rgm@gnu.org> * Relicense all FSF files to GPLv3 or later. 2007-07-24 Jason Rumney <jasonr@gnu.org> * src/w32fns.c (x_real_positions): Get real position from OS instead of calculating it. Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
This commit is contained in:
commit
70360d0cab
1 changed files with 9 additions and 8 deletions
17
src/w32fns.c
17
src/w32fns.c
|
|
@ -6,7 +6,7 @@ This file is part of GNU Emacs.
|
|||
|
||||
GNU Emacs is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2, or (at your option)
|
||||
the Free Software Foundation; either version 3, or (at your option)
|
||||
any later version.
|
||||
|
||||
GNU Emacs is distributed in the hope that it will be useful,
|
||||
|
|
@ -436,20 +436,21 @@ x_real_positions (f, xptr, yptr)
|
|||
POINT pt;
|
||||
RECT rect;
|
||||
|
||||
GetClientRect(FRAME_W32_WINDOW(f), &rect);
|
||||
AdjustWindowRect(&rect, f->output_data.w32->dwStyle, FRAME_EXTERNAL_MENU_BAR(f));
|
||||
/* Get the bounds of the WM window. */
|
||||
GetWindowRect (FRAME_W32_WINDOW (f), &rect);
|
||||
|
||||
pt.x = rect.left;
|
||||
pt.y = rect.top;
|
||||
pt.x = 0;
|
||||
pt.y = 0;
|
||||
|
||||
ClientToScreen (FRAME_W32_WINDOW(f), &pt);
|
||||
/* Convert (0, 0) in the client area to screen co-ordinates. */
|
||||
ClientToScreen (FRAME_W32_WINDOW (f), &pt);
|
||||
|
||||
/* Remember x_pixels_diff and y_pixels_diff. */
|
||||
f->x_pixels_diff = pt.x - rect.left;
|
||||
f->y_pixels_diff = pt.y - rect.top;
|
||||
|
||||
*xptr = pt.x;
|
||||
*yptr = pt.y;
|
||||
*xptr = rect.left;
|
||||
*yptr = rect.top;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue