From: ewt Date: Mon, 13 Oct 1997 20:20:54 +0000 (+0000) Subject: updated to version 0.13 X-Git-Tag: r0-20~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=721584c3cdb8bde292b49670d6a6f4f6212d8a5f;p=thirdparty%2Fnewt.git updated to version 0.13 --- diff --git a/Makefile b/Makefile index e12f5f3..5252d9c 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ ifeq ($(RPM_OPT_FLAGS),) CFLAGS += -g -O2 endif -VERSION = 0.12 +VERSION = 0.13 CVSTAG = r$(subst .,-,$(VERSION)) SONAME = 0.11 diff --git a/newt.c b/newt.c index c966e99..802aeac 100644 --- a/newt.c +++ b/newt.c @@ -575,5 +575,10 @@ int newtSetFlags(int oldFlags, int newFlags, enum newtFlagsSense sense) { void newtBell(void) { - SLtt_beep(); + SLtt_beep(); +} + +void newtGetScreenSize(int * cols, int * rows) { + if (rows) *rows = SLtt_Screen_Rows; + if (cols) *cols = SLtt_Screen_Cols; } diff --git a/newt.h b/newt.h index 386312a..98f594a 100644 --- a/newt.h +++ b/newt.h @@ -122,6 +122,7 @@ newtComponent newtListitem(int left, int top, const char * text, int isDefault, newtComponent prevItem, const void * data, int flags); void newtListitemSet(newtComponent co, const char * text); void * newtListitemGetData(newtComponent co); +void newtGetScreenSize(int * cols, int * rows); newtComponent newtLabel(int left, int top, const char * text); void newtLabelSetText(newtComponent co, const char * text); diff --git a/newt.spec b/newt.spec index 9c641f8..140a686 100644 --- a/newt.spec +++ b/newt.spec @@ -1,6 +1,6 @@ Summary: Not Erik's Windowing Toolkit - text mode windowing with slang Name: newt -%define version 0.12 +%define version 0.13 Version: %{version} Release: 1 Copyright: LGPL