diff options
author | John Ankarström <john@ankarstrom.se> | 2022-04-01 13:29:25 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-04-01 13:29:25 +0200 |
commit | 7b7fcdfef7487770d3089bafaedf467e30ed3afe (patch) | |
tree | 9ae144830bbf4a4ed8b96da3459bef4f30579f30 /c/episodelistview.c | |
parent | 0b32a837283c4f90aee67f0721e38bf929a04882 (diff) | |
download | EpisodeBrowser-7b7fcdfef7487770d3089bafaedf467e30ed3afe.tar.gz |
Support per-monitor DPI.
Diffstat (limited to 'c/episodelistview.c')
-rw-r--r-- | c/episodelistview.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/c/episodelistview.c b/c/episodelistview.c index 95f234a..76c99d9 100644 --- a/c/episodelistview.c +++ b/c/episodelistview.c @@ -23,7 +23,7 @@ ElvCreate() lvc.mask = LVCF_WIDTH|LVCF_TEXT|LVCF_SUBITEM; lvc.iSubItem = 0; lvc.pszText = TEXT("#"); - lvc.cx = 42; + lvc.cx = Dpi(42); ListView_InsertColumn(HElv, 0, &lvc); lvc.iSubItem = 1; @@ -117,10 +117,13 @@ ElvSelectRecent() term_t t; t = T(1); - P("track_episodes","most_recently_watched",1,t) return; + P("track_episodes","most_recently_watched",1,t) { + iEpisode = 1; + goto sel; + } GI(t,&iEpisode) return; - lvfi.flags = LVFI_PARAM; +sel: lvfi.flags = LVFI_PARAM; lvfi.lParam = iEpisode; iItem = ListView_FindItem(HElv, -1, &lvfi); |