diff mcabber/mcabber/screen.c @ 1819:d13315366ba5

Add scr_getlogwinheight()
author Mikael Berthe <mikael@lilotux.net>
date Tue, 23 Mar 2010 23:41:21 +0100
parents 6abca6000762
children 60db836ad98a
line wrap: on
line diff
--- a/mcabber/mcabber/screen.c	Tue Mar 23 16:47:18 2010 +0200
+++ b/mcabber/mcabber/screen.c	Tue Mar 23 23:41:21 2010 +0100
@@ -869,6 +869,13 @@
   return maxY - Log_Win_Height - 3;
 }
 
+guint scr_getlogwinheight(void)
+{
+  if (Log_Win_Height >= 2)
+    return Log_Win_Height - 2;
+  return 0;
+}
+
 //  scr_print_logwindow(string)
 // Display the string in the log window.
 // Note: The string must be in the user's locale!