From: jsteube Date: Sat, 28 May 2016 16:05:04 +0000 (+0200) Subject: Remove coreclock frequency returned back from OpenCL runtime (always wrong since... X-Git-Tag: v3.00~116 X-Git-Url: https://www.flypig.org.uk/git/?a=commitdiff_plain;h=1b05d093274521a4216bee6ec0df4a162cf28189;p=hashcat.git Remove coreclock frequency returned back from OpenCL runtime (always wrong since GTX5xx) - we now have a better reading in status display Only adjust screen width on windows, not height --- diff --git a/src/hashcat.c b/src/hashcat.c index 4003d07..b7fbb25 100644 --- a/src/hashcat.c +++ b/src/hashcat.c @@ -5338,7 +5338,7 @@ static uint generate_bitmaps (const uint digests_cnt, const uint dgst_size, cons */ #ifdef _WIN -void SetConsoleWindowSize (const int x, const int y) +void SetConsoleWindowSize (const int x) { HANDLE h = GetStdHandle (STD_OUTPUT_HANDLE); @@ -5350,18 +5350,13 @@ void SetConsoleWindowSize (const int x, const int y) SMALL_RECT *sr = &bufferInfo.srWindow; - sr->Left = 0; - sr->Top = 0; - sr->Right = MAX (sr->Right, x - 1); - sr->Bottom = MAX (sr->Bottom, y - 1); + sr->Right = MAX (sr->Right, x - 1); COORD co; co.X = sr->Right + 1; co.Y = sr->Bottom + 1; - co.Y = MAX (co.Y, 1337); - if (!SetConsoleScreenBufferSize (h, co)) return; if (!SetConsoleWindowInfo (h, TRUE, sr)) return; @@ -5371,7 +5366,7 @@ void SetConsoleWindowSize (const int x, const int y) int main (int argc, char **argv) { #ifdef _WIN - SetConsoleWindowSize (132, 44); + SetConsoleWindowSize (132); #endif /** @@ -13741,12 +13736,11 @@ int main (int argc, char **argv) { if (device_param->skipped == 0) { - log_info ("Device #%u: %s, %lu/%lu MB allocatable, %dMhz, %uMCU", + log_info ("Device #%u: %s, %lu/%lu MB allocatable, %uMCU", device_id + 1, device_name, (unsigned int) (device_maxmem_alloc / 1024 / 1024), (unsigned int) (device_global_mem / 1024 / 1024), - (unsigned int) (device_maxclock_frequency), (unsigned int) device_processors); } else