diff options
author | Eric Hameleers <alien@slackware.com> | 2008-01-26 22:32:00 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2008-01-26 22:32:00 +0000 |
commit | acdb783b3208b13047cb12c26e8c44c37e4701eb (patch) | |
tree | 7200526c4342fc4af8385d9a3f2f3d9da8c8ec56 /newt/build/newt-0.52.2-screensize.patch | |
parent | 255b272a8b2c7f9e3cbd1c31fc325aa08f699fef (diff) | |
download | asb-acdb783b3208b13047cb12c26e8c44c37e4701eb.tar.gz asb-acdb783b3208b13047cb12c26e8c44c37e4701eb.tar.xz |
Initial revision
Diffstat (limited to 'newt/build/newt-0.52.2-screensize.patch')
-rw-r--r-- | newt/build/newt-0.52.2-screensize.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/newt/build/newt-0.52.2-screensize.patch b/newt/build/newt-0.52.2-screensize.patch new file mode 100644 index 00000000..ebfedab9 --- /dev/null +++ b/newt/build/newt-0.52.2-screensize.patch @@ -0,0 +1,40 @@ +--- newt-0.52.2/newt.c.wincoord 2005-09-30 16:13:16.000000000 +0200 ++++ newt-0.52.2/newt.c 2006-03-28 22:39:40.000000000 +0200 +@@ -617,7 +617,7 @@ + * @param title - title string + * @return zero on success (currently no errors reported) + */ +-int newtOpenWindow(unsigned int left, unsigned int top, ++int newtOpenWindow(int left, int top, + unsigned int width, unsigned int height, + const char * title) { + int j, row, col; +@@ -708,14 +708,14 @@ + */ + int newtCenteredWindow(unsigned int width,unsigned int height, + const char * title) { +- unsigned int top, left; ++ int top, left; + +- top = (SLtt_Screen_Rows - height) / 2; ++ top = ((int)(SLtt_Screen_Rows - height)) / 2; + + /* I don't know why, but this seems to look better */ + if ((SLtt_Screen_Rows % 2) && (top % 2)) top--; + +- left = (SLtt_Screen_Cols - width) / 2; ++ left = ((int)(SLtt_Screen_Cols - width)) / 2; + + newtOpenWindow(left, top, width, height, title); + +--- newt-0.52.2/newt.h.wincoord 2005-09-21 11:32:01.000000000 +0200 ++++ newt-0.52.2/newt.h 2006-03-28 22:06:07.000000000 +0200 +@@ -115,7 +115,7 @@ + void newtClearKeyBuffer(void); + void newtDelay(unsigned int usecs); + /* top, left are *not* counting the border */ +-int newtOpenWindow(unsigned int left,unsigned int top, ++int newtOpenWindow(int left,int top, + unsigned int width,unsigned int height, + const char * title); + int newtCenteredWindow(unsigned int width,unsigned int height, const char * title); |