Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
ee04257d
Commit
ee04257d
authored
Jul 24, 2007
by
Jason Rumney
Browse files
(x_real_positions): Get real position from OS instead of calculating it.
parent
57b8089a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
src/ChangeLog
src/ChangeLog
+5
-0
src/w32fns.c
src/w32fns.c
+8
-7
No files found.
src/ChangeLog
View file @
ee04257d
2007-07-24 Jason Rumney <jasonr@gnu.org>
* w32fns.c (x_real_positions): Get real position from OS instead of
calculating it.
2007-07-23 Jason Rumney <jasonr@gnu.org>
* filelock.c (current_lock_owner): Allow for @ sign in username.
...
...
src/w32fns.c
View file @
ee04257d
...
...
@@ -436,20 +436,21 @@ x_real_positions (f, xptr, yptr)
POINT pt;
RECT rect;
GetClientRect(FRAME_W32_WINDOW(f), &rect);
Adjus
tWindowRect
(&rect, f->output_data.w32->dwStyle, FRAME_EXTERNAL_MENU_BAR(f)
);
/* Get the bounds of the WM window. */
Ge
tWindowRect
(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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment