Skip to content

Commit 0f3d3ba

Browse files
committed
Merge branch 'master' of https://github.com/kcleal/gw
2 parents 9ec1a6f + 2fe9c46 commit 0f3d3ba

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
pull_request:
66

77
env:
8-
version: 1.1.2
8+
version: 1.1.3
99

1010
jobs:
1111
mingw:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
TARGET = gw
2-
VERSION = "1.1.3"
2+
VERSION = "1.1.4"
33
.PHONY: default all debug clean
44
default: $(TARGET)
55
all: default

src/drawing.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2025,7 +2025,7 @@ namespace Drawing {
20252025
}
20262026

20272027

2028-
std::string floatToStringCommas(float num, int precision=1) {
2028+
std::string floatToStringCommas(double num, int precision=1) {
20292029
std::stringstream stream;
20302030
std::string s;
20312031
int n;
@@ -2059,7 +2059,6 @@ namespace Drawing {
20592059
a = "0";
20602060
return;
20612061
}
2062-
// int rounding = std::min(std::ceil(std::log10(num)), std::ceil(std::log10(regionLen)));
20632062
int rounding = std::ceil(std::log10(regionLen));
20642063
double d;
20652064
switch (rounding) {
@@ -2074,7 +2073,6 @@ namespace Drawing {
20742073
d = (double)num / 1e3;
20752074
d = std::floor(d * 10) / 10;
20762075
a = floatToStringCommas((float)d, 1);
2077-
// a = Utils::removeZeros((float)d);
20782076
a += " kb";
20792077
break;
20802078
case 5:

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#include <emscripten.h>
3131
#endif
3232

33-
// note to developer - update version in workflows/main.yml, menu.cpp, term_out.cpp, and deps/gw.desktop, and installers .md in docs (post release)
33+
// note to developer - update version in Makefile, workflows/main.yml, menu.cpp, term_out.cpp, and deps/gw.desktop, and installers .md in docs (post release)
3434
const char GW_VERSION [7] = "1.1.3";
3535
// skia context has to be managed from global space to work
3636
GrDirectContext *sContext = nullptr;

0 commit comments

Comments
 (0)