Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/screen.c @ 1791:6e0a8bfb3a01
Add scr_gettextheight()
author | Myhailo Danylenko <isbear@ukrpost.net> |
---|---|
date | Mon, 15 Mar 2010 00:47:39 +0200 |
parents | af3de54ef986 |
children | c3ddb52f1055 |
comparison
equal
deleted
inserted
replaced
1790:a1d987cc1a4d | 1791:6e0a8bfb3a01 |
---|---|
857 guint scr_gettextwidth(void) | 857 guint scr_gettextwidth(void) |
858 { | 858 { |
859 return maxX - Roster_Width - scr_getprefixwidth(); | 859 return maxX - Roster_Width - scr_getprefixwidth(); |
860 } | 860 } |
861 | 861 |
862 guint scr_gettextheight(void) | |
863 { | |
864 // log window, two status bars and one input line | |
865 return maxY - Log_Win_Height - 3; | |
866 } | |
867 | |
862 // scr_print_logwindow(string) | 868 // scr_print_logwindow(string) |
863 // Display the string in the log window. | 869 // Display the string in the log window. |
864 // Note: The string must be in the user's locale! | 870 // Note: The string must be in the user's locale! |
865 void scr_print_logwindow(const char *string) | 871 void scr_print_logwindow(const char *string) |
866 { | 872 { |