Displaying 4 results from an estimated 4 matches for "console_chars_left".
2013 Apr 21
2
flac 1.3.0pre3 pre-release
Janne Hyv?rinen wrote:
> Sorry for spamming but I noticed one more display glitch while doing
> further testing. It could leave old status messages at the end of the
> line while printing status messages if initial status fit on one line
> and new status text required new line.
Patches applied. Thanks!
Erik
--
2014 Jul 07
1
[PATCH] for console width detection
A bug was reported here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=739613
get_console_width() may return 0, and there will be division by 0
in stats_print_name():
console_width = get_console_width();
len = strlen_console(name)+2;
console_chars_left = console_width - (len % console_width);
A simple patch is attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: width.patch
Type: application/octet-stream
Size: 644 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/flac-dev/attachments/201407...
2013 May 15
2
FLAC currently won't compile for Android [bisected]
Felix Homann wrote:
> Here are the warnings I get with 03a9e6064d406e3656afacdbe50e8e47ebfa0de3:
It seems Android sys/param.h doesn't define MIN/MAX.
Could you try to revert this commit on current master (or simply
change line 35 of src/libFLAC/include/private/macros.h back to
#if defined(__GNUC__)
) and recompile? Or possibly bisect 03a9e60..master to find out when
the
2013 May 23
2
FLAC currently won't compile for Android [bisected]
...rate. I've done a new one:
>
>
Here's my patch suggestion but I'm no Android guy.
-------------- next part --------------
diff --git a/src/flac/utils.c b/src/flac/utils.c
index e908706..6f6382e 100644
--- a/src/flac/utils.c
+++ b/src/flac/utils.c
@@ -171,13 +171,13 @@ static int console_chars_left;
int get_console_width(void)
{
int width = 80;
-#ifdef _WIN32
+#if defined _WIN32
width = win_get_console_width();
#elif defined __EMX__
- int s[2];
- _scrsize (s);
- width = s[0];
-#else
+ int s[2];
+ _scrsize (s);
+ width = s[0];
+#elif !defined __ANDROID__
struct wi...