|
22 | 22 | // VoidImageViewer |
23 | 23 |
|
24 | 24 | // TODO: |
| 25 | +// why does webp use soo much RAM when gif doesn't use any? |
25 | 26 | // Use Direct3D to render images when shrinking. |
26 | 27 | // dragging the status bar should move the window. |
27 | 28 | // center window on first run. (when no image is shown) -it's currently showing top left. |
@@ -8441,7 +8442,7 @@ static INT_PTR CALLBACK _viv_about_proc(HWND hwnd,UINT msg,WPARAM wParam,LPARAM |
8441 | 8442 | string_printf(version_wbuf,"%d.%d.%d.%d%s %s",VERSION_MAJOR,VERSION_MINOR,VERSION_REVISION,VERSION_BUILD,VERSION_TYPE,VERSION_TARGET_MACHINE); |
8442 | 8443 | SetDlgItemText(hwnd,IDC_ABOUTVERSION,version_wbuf); |
8443 | 8444 | os_SetDlgItemText(hwnd,IDC_ABOUTCOPYRIGHT,(const utf8_t *)"Copyright © " VIV_YEAR_STRING(VERSION_YEAR) " David Carpenter"); |
8444 | | - os_SetDlgItemText(hwnd,IDC_ABOUTEMAIL,(const utf8_t *)"david@voidtools.com"); |
| 8445 | + os_SetDlgItemText(hwnd,IDC_ABOUTEMAIL,(const utf8_t *)"david.carpenter@voidtools.com"); |
8445 | 8446 | os_SetDlgItemText(hwnd,IDC_ABOUTWEBSITE,(const utf8_t *)"www.voidtools.com"); |
8446 | 8447 |
|
8447 | 8448 | if (!_viv_about_hfont) |
@@ -8866,7 +8867,7 @@ static int _viv_webp_frame_proc(_viv_webp_t *viv_webp,BYTE *pixels,int delay) |
8866 | 8867 | bmi.bmiHeader.biBitCount = 24; |
8867 | 8868 | bmi.bmiHeader.biCompression = BI_RGB; |
8868 | 8869 |
|
8869 | | - hbitmap = CreateDIBSection(viv_webp->mem_hdc,&bmi,DIB_RGB_COLORS,NULL,NULL,0); |
| 8870 | + hbitmap = CreateCompatibleBitmap(viv_webp->screen_hdc,viv_webp->wide,viv_webp->high); |
8870 | 8871 |
|
8871 | 8872 | // Set RGB data to the bitmap |
8872 | 8873 | if (hbitmap) |
|
0 commit comments