Skip to content

Commit b4ba484

Browse files
authored
Add files via upload
1 parent a814aa7 commit b4ba484

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
#define VERSION_MAJOR 1
33
#define VERSION_MINOR 0
44
#define VERSION_REVISION 0
5-
#define VERSION_BUILD 9
5+
#define VERSION_BUILD 10
66
#define VERSION_TYPE ""

src/viv.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
// VoidImageViewer
2323

2424
// TODO:
25+
// why does webp use soo much RAM when gif doesn't use any?
2526
// Use Direct3D to render images when shrinking.
2627
// dragging the status bar should move the window.
2728
// 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
84418442
string_printf(version_wbuf,"%d.%d.%d.%d%s %s",VERSION_MAJOR,VERSION_MINOR,VERSION_REVISION,VERSION_BUILD,VERSION_TYPE,VERSION_TARGET_MACHINE);
84428443
SetDlgItemText(hwnd,IDC_ABOUTVERSION,version_wbuf);
84438444
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");
84458446
os_SetDlgItemText(hwnd,IDC_ABOUTWEBSITE,(const utf8_t *)"www.voidtools.com");
84468447

84478448
if (!_viv_about_hfont)
@@ -8866,7 +8867,7 @@ static int _viv_webp_frame_proc(_viv_webp_t *viv_webp,BYTE *pixels,int delay)
88668867
bmi.bmiHeader.biBitCount = 24;
88678868
bmi.bmiHeader.biCompression = BI_RGB;
88688869

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);
88708871

88718872
// Set RGB data to the bitmap
88728873
if (hbitmap)

0 commit comments

Comments
 (0)