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
8847d890
Commit
8847d890
authored
Apr 16, 1996
by
Richard M. Stallman
Browse files
(defined_color): Map color to nearest in default palette.
(win32_wnd_proc): Special handling for WM_CLOSE.
parent
26367193
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
src/w32fns.c
src/w32fns.c
+8
-2
No files found.
src/w32fns.c
View file @
8847d890
...
...
@@ -1185,7 +1185,9 @@ defined_color (f, color, color_def, alloc)
if (!NILP (tem))
{
*color_def = XUINT (tem);
/* map color to nearest in (default) palette, to avoid
dithering on limited color displays. */
*color_def = XUINT (tem) | 0x2000000;
return 1;
}
else
...
...
@@ -2777,12 +2779,16 @@ win32_wnd_proc (hwnd, msg, wParam, lParam)
case WM_MOVE:
case WM_SIZE:
case WM_KILLFOCUS:
case WM_CLOSE:
case WM_VSCROLL:
case WM_SYSCOMMAND:
case WM_COMMAND:
my_post_msg (&wmsg, hwnd, msg, wParam, lParam);
goto dflt;
case WM_CLOSE:
my_post_msg (&wmsg, hwnd, msg, wParam, lParam);
return 0;
case WM_WINDOWPOSCHANGING:
{
WINDOWPLACEMENT wp;
...
...
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