diff --git a/core/image.cpp b/core/image.cpp index e2f353698fea..8ef5a2fc809c 100644 --- a/core/image.cpp +++ b/core/image.cpp @@ -94,6 +94,7 @@ void Image::_put_pixelb(int p_x, int p_y, uint32_t p_pixelsize, uint8_t *p_data, for (uint32_t i = 0; i < p_pixelsize; i++) { p_data[ofs + i] = p_pixel[i]; } + // something new } void Image::_get_pixelb(int p_x, int p_y, uint32_t p_pixelsize, const uint8_t *p_data, uint8_t *p_pixel) { @@ -102,6 +103,7 @@ void Image::_get_pixelb(int p_x, int p_y, uint32_t p_pixelsize, const uint8_t *p for (uint32_t i = 0; i < p_pixelsize; i++) { p_pixel[i] = p_data[ofs + i]; } + // something else } int Image::get_format_pixel_size(Format p_format) { diff --git a/platform/windows/detect.py b/platform/windows/detect.py index a9f25fa07855..b46b87d03f7c 100644 --- a/platform/windows/detect.py +++ b/platform/windows/detect.py @@ -197,13 +197,13 @@ def configure_msvc(env, manual_msvc_config): elif env["target"] == "debug": env.AppendUnique(CCFLAGS=["/Z7", "/Od", "/EHsc"]) env.AppendUnique(CPPDEFINES=["DEBUG_ENABLED"]) - env.Append(LINKFLAGS=["/DEBUG"]) + env.Append(LINKFLAGS=["/DEBUG:fastlink"]) env.Append(LINKFLAGS=["/SUBSYSTEM:WINDOWS"]) if env["debug_symbols"] == "full" or env["debug_symbols"] == "yes": env.AppendUnique(CCFLAGS=["/Z7"]) - env.AppendUnique(LINKFLAGS=["/DEBUG"]) + env.AppendUnique(LINKFLAGS=["/DEBUG:fastlink"]) ## Compile/link flags diff --git a/timecmd.bat b/timecmd.bat new file mode 100644 index 000000000000..0d738287f5e2 --- /dev/null +++ b/timecmd.bat @@ -0,0 +1,26 @@ +@echo off +@setlocal + +set start=%time% + +:: Runs your command +cmd /c %* + +set end=%time% +set options="tokens=1-4 delims=:.," +for /f %options% %%a in ("%start%") do set start_h=%%a&set /a start_m=100%%b %% 100&set /a start_s=100%%c %% 100&set /a start_ms=100%%d %% 100 +for /f %options% %%a in ("%end%") do set end_h=%%a&set /a end_m=100%%b %% 100&set /a end_s=100%%c %% 100&set /a end_ms=100%%d %% 100 + +set /a hours=%end_h%-%start_h% +set /a mins=%end_m%-%start_m% +set /a secs=%end_s%-%start_s% +set /a ms=%end_ms%-%start_ms% +if %ms% lss 0 set /a secs = %secs% - 1 & set /a ms = 100%ms% +if %secs% lss 0 set /a mins = %mins% - 1 & set /a secs = 60%secs% +if %mins% lss 0 set /a hours = %hours% - 1 & set /a mins = 60%mins% +if %hours% lss 0 set /a hours = 24%hours% +if 1%ms% lss 100 set ms=0%ms% + +:: Mission accomplished +set /a totalsecs = %hours%*3600 + %mins%*60 + %secs% +echo command took %hours%:%mins%:%secs%.%ms% (%totalsecs%.%ms%s total)