refactor: remove a very lonely C file
This commit is contained in:
parent
454d07b1a8
commit
38d76eb811
3 changed files with 4 additions and 7 deletions
|
@ -1 +0,0 @@
|
||||||
#define ID_ICON_FLOW 1
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include "ResourceNames.h"
|
#define ID_ICON_FLOW 1
|
||||||
|
|
||||||
// LANG_NEUTRAL(0), SUBLANG_NEUTRAL(0)
|
// LANG_NEUTRAL(0), SUBLANG_NEUTRAL(0)
|
||||||
LANGUAGE 0, 0
|
LANGUAGE 0, 0
|
||||||
|
|
|
@ -3,9 +3,7 @@ const tracy = @import("tracy");
|
||||||
const build_options = @import("build_options");
|
const build_options = @import("build_options");
|
||||||
const root = @import("root");
|
const root = @import("root");
|
||||||
|
|
||||||
const c = @cImport({
|
const ID_ICON_FLOW = 1;
|
||||||
@cInclude("ResourceNames.h");
|
|
||||||
});
|
|
||||||
|
|
||||||
const win32 = @import("win32").everything;
|
const win32 = @import("win32").everything;
|
||||||
const win32ext = @import("win32ext.zig");
|
const win32ext = @import("win32ext.zig");
|
||||||
|
@ -118,7 +116,7 @@ fn getIcons(dpi: XY(u32)) Icons {
|
||||||
});
|
});
|
||||||
const small = win32.LoadImageW(
|
const small = win32.LoadImageW(
|
||||||
win32.GetModuleHandleW(null),
|
win32.GetModuleHandleW(null),
|
||||||
@ptrFromInt(c.ID_ICON_FLOW),
|
@ptrFromInt(ID_ICON_FLOW),
|
||||||
.ICON,
|
.ICON,
|
||||||
small_x,
|
small_x,
|
||||||
small_y,
|
small_y,
|
||||||
|
@ -126,7 +124,7 @@ fn getIcons(dpi: XY(u32)) Icons {
|
||||||
) orelse win32.panicWin32("LoadImage for small icon", win32.GetLastError());
|
) orelse win32.panicWin32("LoadImage for small icon", win32.GetLastError());
|
||||||
const large = win32.LoadImageW(
|
const large = win32.LoadImageW(
|
||||||
win32.GetModuleHandleW(null),
|
win32.GetModuleHandleW(null),
|
||||||
@ptrFromInt(c.ID_ICON_FLOW),
|
@ptrFromInt(ID_ICON_FLOW),
|
||||||
.ICON,
|
.ICON,
|
||||||
large_x,
|
large_x,
|
||||||
large_y,
|
large_y,
|
||||||
|
|
Loading…
Add table
Reference in a new issue