diff --git a/discord.d b/discord.d index 489d9ab..99aef45 100644 --- a/discord.d +++ b/discord.d @@ -671,6 +671,9 @@ class DiscordGatewayConnection { if(closeEvent.code == 1006 || closeEvent.code == 1001) { reconnectAndResume(); + } else if(closeEvent.code == 4004) { + // auth failed + throw new Exception("Authentication failed"); } else { // otherwise, unless we were asked by the api user to close, let's try reconnecting // since discord just does discord things. diff --git a/minigui.d b/minigui.d index cb97c14..48526cb 100644 --- a/minigui.d +++ b/minigui.d @@ -7555,6 +7555,11 @@ class HorizontalScrollbar : ScrollbarBase { } } + version(custom_widgets) + override void dpiChanged() { + thumb.thumbHeight = scaleWithDpi(16); + } + override int minHeight() { return scaleWithDpi(16); } override int maxHeight() { return scaleWithDpi(16); } override int minWidth() { return scaleWithDpi(48); } @@ -7677,6 +7682,11 @@ class VerticalScrollbar : ScrollbarBase { } } + version(custom_widgets) + override void dpiChanged() { + thumb.thumbWidth = scaleWithDpi(16); + } + override int minWidth() { return scaleWithDpi(16); } override int maxWidth() { return scaleWithDpi(16); } override int minHeight() { return scaleWithDpi(48); } diff --git a/pcx.d b/pcx.d index 4a2b519..7b8059d 100644 --- a/pcx.d +++ b/pcx.d @@ -478,7 +478,7 @@ void writeNum(T, string es="LE", ST) (auto ref ST st, T n) if (isGoodEndianness! } else { import core.stdc.string : memcpy; ubyte[T.sizeof] b = void; - memcpy(b.ptr, &v, T.sizeof); + memcpy(b.ptr, &n, T.sizeof); mixin(reverseBytesMixin); st.rawWriteExact(b[]); }