summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPriyeshkkumar <priyeshkkumar@gmail.com>2020-07-02 22:21:46 +0530
committerPriyeshkkumar <priyeshkkumar@gmail.com>2020-07-02 22:21:46 +0530
commitfde1c1698dcbbadc3b754ffc599857a6d1ccf6eb (patch)
tree59dbb8ee86a642420752476bf46cbc1a1adbf8de
parent1d6ffcc77ad2036d31d1adabb52fe287d256d38c (diff)
downloadfreetype2-fde1c1698dcbbadc3b754ffc599857a6d1ccf6eb.tar.gz
Minor Updates on FT_ERROR part
-rw-r--r--[priyesh]ChangeLog2
-rw-r--r--src/base/ftdebug.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/[priyesh]ChangeLog b/[priyesh]ChangeLog
index 9b6bbd585..d31b5fdf7 100644
--- a/[priyesh]ChangeLog
+++ b/[priyesh]ChangeLog
@@ -23,6 +23,8 @@
* Strated working on Callback.
+ * Minor Updates on support of FT_ERROR part
+
2020-06-30 Priyesh Kumar <priyeshkkumar@gmail.com>
* Adding new line at end of file
diff --git a/src/base/ftdebug.c b/src/base/ftdebug.c
index 544749040..c5c0d12c0 100644
--- a/src/base/ftdebug.c
+++ b/src/base/ftdebug.c
@@ -359,7 +359,16 @@
ft_default_output_handler( const struct dlg_origin* origin,
const char* string, void* data )
{
- unsigned int features = dlg_output_threadsafe /*| dlg_output_tags*/ ;
+ unsigned int features;
+ if( origin->tags[0] == "error_log" )
+ {
+ features = dlg_output_threadsafe | dlg_output_tags ;
+ }
+ else
+ {
+ features = dlg_output_threadsafe /*| dlg_output_tags*/ ;
+ }
+
dlg_generic_output_stream( fileptr, features, origin, string,
dlg_default_output_styles );
}