Skip to content

Commit

Permalink
deploy: 3205ff7
Browse files Browse the repository at this point in the history
github-actions[bot] committed Nov 16, 2024
1 parent e64a649 commit f7094f8
Showing 4 changed files with 354 additions and 344 deletions.
662 changes: 331 additions & 331 deletions catalog.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions changelogs/custom-desktop-watermark.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.2 ([Nov 16, 2024](https://github.com/ramensoftware/windhawk-mods/blob/3205ff7547c8429f0d5b7141231a8733c18d123d/mods/custom-desktop-watermark.wh.cpp))

- Fix resource leak

## 1.0.1 ([Sep 19, 2024](https://github.com/ramensoftware/windhawk-mods/blob/7b9cc220e6128fbdbd9f95e8588b674f98e407e7/mods/custom-desktop-watermark.wh.cpp))

Ensure transparent text background
6 changes: 5 additions & 1 deletion mods/custom-desktop-watermark.wh.cpp
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
// @id custom-desktop-watermark
// @name Custom Desktop Watermark
// @description Lets you set your own desktop watermark text
// @version 1.0.1
// @version 1.0.2
// @author aubymori
// @github https://github.com/aubymori
// @include explorer.exe
@@ -117,6 +117,8 @@ void CDesktopWatermark_s_DesktopBuildPaint_hook(
);
HFONT hTitleFont = CreateFontIndirectW(&ncm.lfCaptionFont);
HFONT hMessageFont = CreateFontIndirectW(&ncm.lfMessageFont);
if (!hTitleFont || !hMessageFont)
return;
int padding = MulDiv(3, dpi, 96);
offset += MulDiv(g_bClassic ? 4 : 1, dpi, 96);

@@ -132,6 +134,8 @@ void CDesktopWatermark_s_DesktopBuildPaint_hook(
) + padding;
}

DeleteObject(hTitleFont);
DeleteObject(hMessageFont);
SetBkMode(hDC, bk);
SetTextColor(hDC, cr);
}
26 changes: 14 additions & 12 deletions updates.atom
Original file line number Diff line number Diff line change
@@ -2,12 +2,25 @@
<feed xmlns="http://www.w3.org/2005/Atom">
<id>https://windhawk.net/</id>
<title>Windhawk Mod Updates</title>
<updated>2024-11-15T07:36:59.000Z</updated>
<updated>2024-11-16T00:41:37.000Z</updated>
<generator>https://github.com/jpmonette/feed</generator>
<link rel="alternate" href="https://windhawk.net/"/>
<subtitle>Updates in the official collection of Windhawk mods</subtitle>
<icon>https://windhawk.net/favicon.ico</icon>
<rights>Ramen Software</rights>
<entry>
<title type="html"><![CDATA[Custom Desktop Watermark 1.0.2]]></title>
<id>https://windhawk.net/mods/custom-desktop-watermark#3205ff7547c8429f0d5b7141231a8733c18d123d</id>
<link href="https://windhawk.net/mods/custom-desktop-watermark"/>
<updated>2024-11-16T00:41:37.000Z</updated>
<content type="html"><![CDATA[<ul>
<li>Fix resource leak</li>
</ul>]]></content>
<author>
<name>aubymori</name>
<uri>https://github.com/aubymori</uri>
</author>
</entry>
<entry>
<title type="html"><![CDATA[Fix Basic Caption Text 1.1.1]]></title>
<id>https://windhawk.net/mods/fix-basic-caption-text#2613791dbe45f4777ff658a06d3cb430e8b26285</id>
@@ -275,15 +288,4 @@
<uri>https://github.com/m417z</uri>
</author>
</entry>
<entry>
<title type="html"><![CDATA[Force Chinese IME Mode 1.0.1]]></title>
<id>https://windhawk.net/mods/force-chinese-ime#a9fe3e8c0a2e81543a4cb42777d6112000e4288b</id>
<link href="https://windhawk.net/mods/force-chinese-ime"/>
<updated>2024-11-05T11:52:31.000Z</updated>
<content type="html"><![CDATA[<p>Add warning message for force-chinese-ime</p>]]></content>
<author>
<name>u3l6</name>
<uri>https://github.com/u3l6</uri>
</author>
</entry>
</feed>

0 comments on commit f7094f8

Please sign in to comment.