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
99012074
Commit
99012074
authored
Dec 21, 2000
by
Andrew Innes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(x_update_begin): Regenerate the palette here, rather
than for each window.
parent
90f4a9f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
13 deletions
+19
-13
src/ChangeLog
src/ChangeLog
+9
-0
src/w32term.c
src/w32term.c
+10
-13
No files found.
src/ChangeLog
View file @
99012074
2000-12-21 Andrew Innes <andrewi@gnu.org>
* w32term.c (x_update_begin): Regenerate the palette here, rather
than for each window.
* w32xfns.c (select_palette): Avoid calling SelectPalette if
palette is NULL, since this corrupts memory! Also get
display_info reference from frame.
2000-12-21 Jason Rumney <jasonr@gnu.org>
2000-12-21 Jason Rumney <jasonr@gnu.org>
* w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
* w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
...
...
src/w32term.c
View file @
99012074
...
@@ -544,16 +544,21 @@ w32_clear_window (f)
...
@@ -544,16 +544,21 @@ w32_clear_window (f)
/* Start an update of frame F. This function is installed as a hook
/* Start an update of frame F. This function is installed as a hook
for update_begin, i.e. it is called when update_begin is called.
for update_begin, i.e. it is called when update_begin is called.
This function is called prior to calls to x_update_window_begin for
This function is called prior to calls to x_update_window_begin for
each window being updated. Currently, there is nothing to do here
each window being updated. */
because all interesting stuff is done on a window basis. */
static void
static void
x_update_begin (f)
x_update_begin (f)
struct frame *f;
struct frame *f;
{
{
/* Nothing to do. We have to do something though, otherwise the
struct w32_display_info *display_info = FRAME_W32_DISPLAY_INFO (f);
function gets optimized away and the hook is no longer valid. */
struct frame *cf = f;
/* Regenerate display palette before drawing if list of requested
colors has changed. */
if (display_info->regen_palette)
{
w32_regenerate_palette (f);
display_info->regen_palette = FALSE;
}
}
}
...
@@ -573,14 +578,6 @@ x_update_window_begin (w)
...
@@ -573,14 +578,6 @@ x_update_window_begin (w)
BLOCK_INPUT;
BLOCK_INPUT;
/* Regenerate display palette before drawing if list of requested
colors has changed. */
if (display_info->regen_palette)
{
w32_regenerate_palette (f);
display_info->regen_palette = FALSE;
}
if (f == display_info->mouse_face_mouse_frame)
if (f == display_info->mouse_face_mouse_frame)
{
{
/* Don't do highlighting for mouse motion during the update. */
/* Don't do highlighting for mouse motion during the update. */
...
...
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