]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
updated to version 0.13
authorewt <ewt>
Mon, 13 Oct 1997 20:20:54 +0000 (20:20 +0000)
committerewt <ewt>
Mon, 13 Oct 1997 20:20:54 +0000 (20:20 +0000)
Makefile
newt.c
newt.h
newt.spec

index e12f5f302dfe84560c5e4a99c0fd30525a398a64..5252d9c7a81d5419e8845e48e48808356ee79950 100644 (file)
--- 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 c966e9975d5f6680b3e90d830776e96cb8a3d880..802aeac9e368f60015564103829f9c4450414601 100644 (file)
--- 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 386312af0b8dbb1794773e4fde290d4a111badb8..98f594a95aa3b6d9dcc93980c78547758bc85968 100644 (file)
--- 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);
index 9c641f8a548674b672ee996a5d695a6cf62ccb55..140a686833dcf3e6253e8a73fc12a50ed9337e12 100644 (file)
--- 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