- revert revision 1.26 which was labelled "Fix for win32 host not displaying

all of the window especially after a resize".  This causes screen corruption
  on my win98 box whenever Bochs changes resolution, so I removed it from cvs
  and checked it in as patches/patch.win32-resize instead.
This commit is contained in:
Bryce Denney 2002-03-28 01:12:26 +00:00
parent 1d9f9d0c41
commit dd5d93705f
1 changed files with 7 additions and 23 deletions

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: win32.cc,v 1.29 2002-03-21 18:40:20 vruppert Exp $
// $Id: win32.cc,v 1.30 2002-03-28 01:12:26 bdenney Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2002 MandrakeSoft S.A.
@ -161,25 +161,6 @@ void DestroyFont(void);
void bx_signal_handler(int);
#endif
static int stored_x = 0;
static int stored_y = 0;
static void CreateMainBitmap (HWND hwnd, int x, int y)
{
HDC hdc;
if ((stored_x != x) || (stored_y != y))
if (MemoryBitmap != NULL)
DeleteObject (MemoryBitmap);
hdc = GetDC(hwnd);
MemoryBitmap = CreateCompatibleBitmap(hdc, x, y);
stored_x = x;
stored_y = y;
MemoryDC = CreateCompatibleDC(hdc);
ReleaseDC(hwnd, hdc);
}
static void processMouseXY( int x, int y, int windows_state, int implied_state_change)
{
int bx_state;
@ -415,7 +396,12 @@ VOID UIThread(PVOID pvoid) {
SetCursorPos(wndRect.left + stretched_x/2 + x_edge,
wndRect.top + stretched_y/2 + y_edge + y_caption);
cursorWarped();
CreateMainBitmap (stInfo.hwnd, stretched_x, stretched_y);
hdc = GetDC(stInfo.hwnd);
MemoryBitmap = CreateCompatibleBitmap(hdc, BX_MAX_XRES, BX_MAX_YRES);
MemoryDC = CreateCompatibleDC(hdc);
ReleaseDC(stInfo.hwnd, hdc);
if (MemoryBitmap && MemoryDC) {
stInfo.UIinited = TRUE;
@ -912,8 +898,6 @@ if ( x==dimension_x && y+bx_headerbar_y==dimension_y)
stretch_factor *= 2;
}
CreateMainBitmap(stInfo.hwnd, stretched_x, stretched_y);
FontId = 2;
yChar = 16;
if(y>600)