From 01c85524899587ddec9d9d4135b54b84907946c0 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 10 Oct 2010 22:42:24 +0000 Subject: make windows frontend build and run again Fix redraw bugs Still major issue with frames svn path=/trunk/netsurf/; revision=10880 --- windows/thumbnail.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'windows/thumbnail.c') diff --git a/windows/thumbnail.c b/windows/thumbnail.c index e96c32201..540511516 100644 --- a/windows/thumbnail.c +++ b/windows/thumbnail.c @@ -41,7 +41,7 @@ thumbnail_create(hlcache_handle *content, BITMAPINFOHEADER bmih; LOG(("creating thumbnail %p for url %s content %p", bitmap, url, content)); - + return false; bmi = malloc(sizeof(BITMAPINFOHEADER) + (bitmap->width * bitmap->height * 4)); if (bmi == NULL) { return false; @@ -59,7 +59,7 @@ thumbnail_create(hlcache_handle *content, bmih.biClrUsed = 0; bmih.biClrImportant = 0; bmi->bmiHeader = bmih; - +/* doublebuffering = true; if (bufferdc != NULL) @@ -85,9 +85,9 @@ thumbnail_create(hlcache_handle *content, content_redraw(content, 0, 0, width, height, 0, 0, width, height, 1.0, 0xFFFFFF); thumbnail = false; - +*/ /* scale bufferbm to minibm */ - +/* minidc = CreateCompatibleDC(hdc); if (minidc == NULL) { doublebuffering = false; @@ -123,9 +123,9 @@ thumbnail_create(hlcache_handle *content, return false; } SelectObject(minidc, minibm2); - +*/ /* save data from minibm bmi */ - GetDIBits(minidc, minibm, 0, 1 - bitmap->height, +/* GetDIBits(minidc, minibm, 0, 1 - bitmap->height, bmi->bmiColors, bmi, DIB_RGB_COLORS); pixdata = (uint8_t *)(bitmap->pixdata); @@ -147,4 +147,5 @@ thumbnail_create(hlcache_handle *content, doublebuffering = false; return true; +*/ } -- cgit v1.2.3