summaryrefslogtreecommitdiff
path: root/windows/thumbnail.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2010-10-10 22:42:24 +0000
committerVincent Sanders <vince@netsurf-browser.org>2010-10-10 22:42:24 +0000
commit01c85524899587ddec9d9d4135b54b84907946c0 (patch)
treea3445377f6212aa585a3393affd8e6537279b2c7 /windows/thumbnail.c
parent5738a8f342d99b8455941e990e37f9f85ea54e36 (diff)
downloadnetsurf-01c85524899587ddec9d9d4135b54b84907946c0.tar.gz
netsurf-01c85524899587ddec9d9d4135b54b84907946c0.tar.bz2
make windows frontend build and run again
Fix redraw bugs Still major issue with frames svn path=/trunk/netsurf/; revision=10880
Diffstat (limited to 'windows/thumbnail.c')
-rw-r--r--windows/thumbnail.c13
1 files changed, 7 insertions, 6 deletions
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;
+*/
}