Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
007776bc
Commit
007776bc
authored
Mar 08, 2002
by
Juanma Barranquero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Fx_display_color_cells): Force 24+ bit color depths to 24-bit.
parent
ded0c207
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
src/ChangeLog
src/ChangeLog
+5
-0
src/w32fns.c
src/w32fns.c
+3
-1
No files found.
src/ChangeLog
View file @
007776bc
2002-03-08 Juanma Barranquero <lektu@terra.es>
* w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
24-bit.
2002-03-06 Jason Rumney <jasonr@gnu.org>
* w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
...
...
src/w32fns.c
View file @
007776bc
...
...
@@ -7768,8 +7768,10 @@ If omitted or nil, that stands for the selected frame's display. */)
else
cap = GetDeviceCaps (hdc,NUMCOLORS);
/* We force 24+ bit depths to 24-bit, both to prevent an overflow
and because probably is more meaningful on Windows anyway */
if (cap < 0)
cap = 1 << (dpyinfo->n_planes * dpyinfo->n_cbits);
cap = 1 <<
min
(dpyinfo->n_planes * dpyinfo->n_cbits
, 24
);
ReleaseDC (dpyinfo->root_window, hdc);
...
...
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