Changeset 3039
- Timestamp:
- 03/07/03 23:51:40 (6 years ago)
- Files:
-
- work/cvs2svn/src/ChangeLog.Meadow (modified) (1 diff)
- work/cvs2svn/src/mw32term.c (modified) (4 diffs)
- work/cvs2svn/src/mw32term.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
work/cvs2svn/src/ChangeLog.Meadow
r3038 r3039 1 2003-03-07 MIYOSHI Masanori <miyoshi@boreas.dti.ne.jp> 2 3 * mw32term.c (mw32i_scroll_run): Sync up with Emacs-21.3.50. 4 5 * mw32term.h: Undefine VK_KANA because Cygwin header file defines 6 a wrong virtual key code as VK_KANA. 7 1 8 2003-03-06 MIYOSHI Masanori <miyoshi@boreas.dti.ne.jp> 2 9 work/cvs2svn/src/mw32term.c
r3038 r3039 5336 5336 struct frame *f = XFRAME (w->frame); 5337 5337 int x, y, width, height, from_y, to_y, bottom_y; 5338 HDC hdc; 5338 HWND hwnd = FRAME_MW32_WINDOW (f); 5339 HRGN expect_dirty; 5339 5340 5340 5341 /* Get frame-relative bounding box of the text display area of W, … … 5357 5358 else 5358 5359 height = run->height; 5360 expect_dirty = CreateRectRgn (x, y + height, x + width, bottom_y); 5359 5361 } 5360 5362 else … … 5366 5368 else 5367 5369 height = run->height; 5370 expect_dirty = CreateRectRgn (x, y, x + width, to_y); 5368 5371 } 5369 5372 … … 5374 5377 mw32_clear_cursor (w); 5375 5378 5376 hdc = FRAME_HDC(f); 5377 BitBlt (hdc, x, to_y, width, height, hdc, x, from_y, SRCCOPY); 5378 /* If we should require GdiFlush(), 5379 insert here. */ 5379 { 5380 RECT from; 5381 RECT to; 5382 HRGN dirty = CreateRectRgn (0, 0, 0, 0); 5383 HRGN combined = CreateRectRgn (0, 0, 0, 0); 5384 5385 from.left = to.left = x; 5386 from.right = to.right = x + width; 5387 from.top = from_y; 5388 from.bottom = from_y + height; 5389 to.top = y; 5390 to.bottom = bottom_y; 5391 5392 ScrollWindowEx (hwnd, 0, to_y - from_y, &from, &to, dirty, 5393 NULL, SW_INVALIDATE); 5394 5395 /* Combine this with what we expect to be dirty. This covers the 5396 case where not all of the region we expect is actually dirty. */ 5397 CombineRgn (combined, dirty, expect_dirty, RGN_OR); 5398 5399 /* If the dirty region is not what we expected, redraw the entire frame. */ 5400 if (!EqualRgn (combined, expect_dirty)) 5401 SET_FRAME_GARBAGED (f); 5402 } 5380 5403 5381 5404 UNBLOCK_INPUT; work/cvs2svn/src/mw32term.h
r3030 r3039 908 908 #define VK_KANJI 0x19 909 909 #endif 910 911 #if defined(__MINGW32__) && defined(VK_KANA) && VK_KANA != 0x15 912 /* Cygwin header file defines a wrong virtual key code as VK_KANA! */ 913 #undef VK_KANA 914 #endif 915 910 916 #ifndef VK_KANA 911 917 #define VK_KANA 0x15
