mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Extract icons only
This commit is contained in:
parent
88d248b842
commit
928e96cf47
@ -1122,7 +1122,7 @@ get_icon_for_file(PyObject *self, PyObject *args) {
|
||||
SIZE size = { width, height };
|
||||
HBITMAP hbmp;
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
hr = pImageFactory->GetImage(size, SIIGBF_BIGGERSIZEOK | SIIGBF_SCALEUP, &hbmp);
|
||||
hr = pImageFactory->GetImage(size, SIIGBF_BIGGERSIZEOK | SIIGBF_SCALEUP | SIIGBF_ICONONLY, &hbmp);
|
||||
pImageFactory->Release();
|
||||
Py_END_ALLOW_THREADS
|
||||
if (!SUCCEEDED(hr)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user