Hello community,

here is the log from the commit of package SDL_bgi for openSUSE:Factory checked 
in at 2016-11-16 13:33:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/SDL_bgi (Old)
 and      /work/SRC/openSUSE:Factory/.SDL_bgi.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "SDL_bgi"

Changes:
--------
--- /work/SRC/openSUSE:Factory/SDL_bgi/SDL_bgi.changes  2016-03-16 
10:35:50.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.SDL_bgi.new/SDL_bgi.changes     2016-11-16 
13:33:38.000000000 +0100
@@ -1,0 +2,13 @@
+Tue Nov 15 23:27:02 UTC 2016 - [email protected]
+
+- Update to new upstream release 2.0.8
+* fixed unspecified bug in palette-manipulating functions
+
+-------------------------------------------------------------------
+Fri Nov 11 20:10:34 UTC 2016 - [email protected]
+
+- Update to new upstream release 2.0.7
+* fixed unspecified bug in event()
+* added the eventtype() funntion
+
+-------------------------------------------------------------------

Old:
----
  SDL_bgi-2.0.6.tar.gz

New:
----
  SDL_bgi-2.0.8.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ SDL_bgi.spec ++++++
--- /var/tmp/diff_new_pack.UwdNQZ/_old  2016-11-16 13:33:39.000000000 +0100
+++ /var/tmp/diff_new_pack.UwdNQZ/_new  2016-11-16 13:33:39.000000000 +0100
@@ -18,14 +18,14 @@
 
 Name:           SDL_bgi
 %define lname  libSDL_bgi1
-Version:        2.0.6
+Version:        2.0.8
 Release:        0
 Summary:        BGI-compatible 2D graphics C library with SDL backend
 License:        Zlib and GPL-2.0+
 Group:          Development/Libraries/X11
 Url:            http://libXbgi.sf.net/
 
-Source:         http://libxbgi.sourceforge.net/%name-%version.tar.gz
+Source:         http://downloads.sf.net/libxbgi/%name-%version.tar.gz
 Patch1:         sdlbgi-automake.diff
 BuildRequires:  automake >= 1.11
 BuildRequires:  libtool >= 2

++++++ SDL_bgi-2.0.6.tar.gz -> SDL_bgi-2.0.8.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SDL_bgi-2.0.6/ChangeLog new/SDL_bgi-2.0.8/ChangeLog
--- old/SDL_bgi-2.0.6/ChangeLog 2016-02-29 09:30:38.000000000 +0100
+++ new/SDL_bgi-2.0.8/ChangeLog 2016-11-15 14:38:11.000000000 +0100
@@ -1,6 +1,15 @@
 Changelog
 ---------
 
+v. 2.0.8, 2016-11-15
+- fixed bug in palette-manipulating functions 
+  (reported by Jacek Mainczyk)
+- Makefile changes
+
+v. 2.0.7, 2016-11-10
+- fixed bug in event() (reported by Peje Nilsson)
+- added eventtype()
+
 v. 2.0.6, 2016-02-29
 - fixed bug in writeimagefile() (reported by
   Manea Alexandru Damian)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SDL_bgi-2.0.6/INSTALL new/SDL_bgi-2.0.8/INSTALL
--- old/SDL_bgi-2.0.6/INSTALL   2015-12-17 18:57:43.000000000 +0100
+++ new/SDL_bgi-2.0.8/INSTALL   2016-11-11 13:33:34.000000000 +0100
@@ -1,8 +1,8 @@
 Installing SDL_bgi from sources
 -------------------------------
 
-Please make sure you have SDL2 development packages. On Debian, Ubuntu
-and similar distributions, please install 'libsdl2-dev' and its
+Please make sure you have SDL2 development packages. On Debian, Mint,
+Ubuntu and similar distributions, please install 'libsdl2-dev' and its
 dependencies.
 
 To compile and install the SDL_bgi library (using gcc or clang):
@@ -11,8 +11,9 @@
   $ make
   $ sudo make install
 
-which will copy SDL_bgi.h to /usr/include/SDL2/, and libSDL_bgi.so to
-/usr/lib.
+the latter command will copy SDL_bgi.h to /usr/include/SDL2/, 
+libSDL_bgi.so to /usr/lib, and will create the symbolic link
+/usr/include/graphics.h.
 
 To compile some test programs in the test/ directory:
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SDL_bgi-2.0.6/VERSION new/SDL_bgi-2.0.8/VERSION
--- old/SDL_bgi-2.0.6/VERSION   2016-01-15 10:41:51.000000000 +0100
+++ new/SDL_bgi-2.0.8/VERSION   2016-11-15 14:30:16.000000000 +0100
@@ -1 +1 @@
-2.0.6
+2.0.8
Files old/SDL_bgi-2.0.6/doc/SDL_bgi_logo.png and 
new/SDL_bgi-2.0.8/doc/SDL_bgi_logo.png differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SDL_bgi-2.0.6/doc/SDL_bgi_logo.svg 
new/SDL_bgi-2.0.8/doc/SDL_bgi_logo.svg
--- old/SDL_bgi-2.0.6/doc/SDL_bgi_logo.svg      1970-01-01 01:00:00.000000000 
+0100
+++ new/SDL_bgi-2.0.8/doc/SDL_bgi_logo.svg      2016-11-09 11:36:01.000000000 
+0100
@@ -0,0 +1,171 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/";
+   xmlns:cc="http://creativecommons.org/ns#";
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
+   xmlns:svg="http://www.w3.org/2000/svg";
+   xmlns="http://www.w3.org/2000/svg";
+   xmlns:xlink="http://www.w3.org/1999/xlink";
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd";
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape";
+   version="1.1"
+   width="858.78229"
+   height="290.14304"
+   id="svg4244"
+   inkscape:version="0.91 r"
+   sodipodi:docname="SDL_bgi_logo.svg"
+   inkscape:export-filename="/home/guido/SDL_bgi_Logo.png"
+   inkscape:export-xdpi="92"
+   inkscape:export-ydpi="92">
+  <sodipodi:namedview
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1"
+     objecttolerance="10"
+     gridtolerance="10"
+     guidetolerance="10"
+     inkscape:pageopacity="0"
+     inkscape:pageshadow="2"
+     inkscape:window-width="1680"
+     inkscape:window-height="998"
+     id="namedview14"
+     showgrid="false"
+     inkscape:zoom="1.1146513"
+     inkscape:cx="500.81786"
+     inkscape:cy="101.87579"
+     inkscape:window-x="0"
+     inkscape:window-y="0"
+     inkscape:window-maximized="1"
+     inkscape:current-layer="svg4244"
+     fit-margin-top="0"
+     fit-margin-left="-35"
+     fit-margin-right="10"
+     fit-margin-bottom="5"
+     units="px" />
+  <defs
+     id="defs3">
+    <linearGradient
+       id="linearGradient4212">
+      <stop
+         id="stop4214"
+         style="stop-color:#656f71;stop-opacity:1"
+         offset="0" />
+      <stop
+         id="stop4216"
+         style="stop-color:#d3d4cf;stop-opacity:1"
+         offset="1" />
+    </linearGradient>
+    <radialGradient
+       cx="204.87476"
+       cy="-243.96365"
+       r="25.724852"
+       fx="204.87476"
+       fy="-243.96365"
+       id="radialGradient4242"
+       xlink:href="#linearGradient4212"
+       gradientUnits="userSpaceOnUse"
+       
gradientTransform="matrix(-4.2279887,-8.2514497,14.012795,-7.1800647,4974.4857,198.67023)"
+       spreadMethod="pad" />
+    <filter
+       style="color-interpolation-filters:sRGB"
+       inkscape:label="Drop Shadow"
+       id="filter4559">
+      <feFlood
+         flood-opacity="0.498039"
+         flood-color="rgb(0,0,0)"
+         result="flood"
+         id="feFlood4561" />
+      <feComposite
+         in="flood"
+         in2="SourceGraphic"
+         operator="in"
+         result="composite1"
+         id="feComposite4563" />
+      <feGaussianBlur
+         in="composite1"
+         stdDeviation="3"
+         result="blur"
+         id="feGaussianBlur4565" />
+      <feOffset
+         dx="6"
+         dy="6"
+         result="offset"
+         id="feOffset4567" />
+      <feComposite
+         in="SourceGraphic"
+         in2="offset"
+         operator="over"
+         result="composite2"
+         id="feComposite4569" />
+    </filter>
+    <filter
+       style="color-interpolation-filters:sRGB"
+       inkscape:label="Drop Shadow"
+       id="filter4571">
+      <feFlood
+         flood-opacity="0.498039"
+         flood-color="rgb(0,0,0)"
+         result="flood"
+         id="feFlood4573" />
+      <feComposite
+         in="flood"
+         in2="SourceGraphic"
+         operator="in"
+         result="composite1"
+         id="feComposite4575" />
+      <feGaussianBlur
+         in="composite1"
+         stdDeviation="3"
+         result="blur"
+         id="feGaussianBlur4577" />
+      <feOffset
+         dx="6"
+         dy="6"
+         result="offset"
+         id="feOffset4579" />
+      <feComposite
+         in="SourceGraphic"
+         in2="offset"
+         operator="over"
+         result="composite2"
+         id="feComposite4581" />
+    </filter>
+  </defs>
+  <metadata
+     id="metadata4">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage"; />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <path
+     inkscape:connector-curvature="0"
+     
style="font-variant:normal;font-weight:bold;font-size:18.92208672px;font-family:Tahoma;-inkscape-font-specification:Tahoma-Bold;writing-mode:lr-tb;fill:#173556;fill-opacity:1;fill-rule:nonzero;stroke:none;filter:url(#filter4571)"
+     id="path4085"
+     d="m 575.48203,264.41032 -0.4518,0 c -0.2081,-0.0749 -0.5093,-0.12445 
-0.9042,-0.1557 -0.3949,-0.0367 -0.8307,-0.05 -1.3085,-0.05 -0.5717,0 
-1.1706,0.0749 -1.7992,0.23649 -0.6277,0.15801 -1.2381,0.34486 -1.8304,0.56295 
l 0,11.12719 -5.4523,0 0,-16.61674 5.4523,0 0,2.38229 c 0.2488,-0.21673 
0.5941,-0.49072 1.0362,-0.82074 0.4409,-0.33018 0.8443,-0.59408 1.2068,-0.79209 
0.395,-0.22685 0.8542,-0.42202 1.3788,-0.58412 0.5242,-0.16299 1.02,-0.24429 
1.4875,-0.24429 0.177,1.3e-4 0.3739,0.005 0.5916,0.0132 0.2182,0.0103 
0.416,0.023 0.5917,0.0496 z m -19.8255,12.16298 c -3.3025,0 -5.8338,-0.74975 
-7.5942,-2.24912 -1.7604,-1.49937 -2.6407,-3.63507 -2.6407,-6.4069 0,-2.71285 
0.8209,-4.87807 2.4616,-6.49587 1.6407,-1.61772 3.9361,-2.42662 6.8855,-2.42662 
2.6792,0 4.6941,0.68497 6.0441,2.05672 1.3502,1.37121 2.0252,3.33415 
2.0252,5.88906 l 0,1.86445 -11.9483,0 c 0.05,0.76968 0.2231,1.41308 
0.5144,1.93094 0.2915,0.51807 0.6751,0.92907 1.1532,1.23544 0.4671,0.30539 
1.0126,0.5256 1.6359,0.65884 0.6226,0.13322 1.3031,0.19931 2.0405,0.19931 
0.634,0 1.2567,-0.0624 1.8694,-0.19931 0.6129,-0.13321 1.1732,-0.30767 
1.6825,-0.52556 0.4473,-0.18827 0.8594,-0.38989 1.238,-0.60654 0.3785,-0.21673 
0.6876,-0.40961 0.9266,-0.57662 l 0.5766,0 0,4.27636 c -0.4472,0.16807 
-0.8543,0.32236 -1.2229,0.46579 -0.3688,0.1433 -0.8757,0.28883 -1.5188,0.43715 
-0.5917,0.14827 -1.2019,0.26405 -1.8305,0.34762 -0.6277,0.0873 -1.3942,0.12578 
-2.2979,0.12578 z m 1.8071,-10.89037 c -0.036,-1.09476 -0.299,-1.92855 
-0.8021,-2.50071 -0.5032,-0.57168 -1.2747,-0.85814 -2.3131,-0.85814 
-1.0599,1.4e-4 -1.8876,0.30124 -2.4848,0.90295 -0.5967,0.60155 -0.9267,1.42043 
-0.9889,2.45626 z m -10.9015,-6.17027 -8.8327,22.71298 -5.8574,0 
2.6482,-6.49571 -6.4181,-16.21727 5.7328,0 3.6762,10.41687 3.4429,-10.41687 z m 
-23.8739,12.28127 0,-3.46245 c -0.9241,0.0873 -1.672,0.16578 -2.2432,0.22915 
-0.5716,0.0624 -1.1322,0.18919 -1.6826,0.37747 -0.4781,0.15801 -0.8494,0.39723 
-1.1134,0.71738 -0.2654,0.32145 -0.3971,0.74728 -0.3971,1.27996 0,0.77964 
0.2205,1.31444 0.6625,1.60548 0.441,0.29162 1.0935,0.43579 1.9551,0.43579 
0.4781,0 0.9653,-0.0997 1.4643,-0.30995 0.4982,-0.20666 0.9503,-0.49816 
1.3554,-0.87307 z m 0,2.57471 c -0.3738,0.29617 -0.7086,0.5617 -1.0052,0.79958 
-0.2967,0.2365 -0.6936,0.47326 -1.1918,0.70989 -0.4882,0.22686 -0.9628,0.39997 
-1.4255,0.51812 -0.4619,0.12446 -1.1084,0.17817 -1.9395,0.17817 -1.5473,0 
-2.8324,-0.4932 -3.8556,-1.4797 -1.0225,-0.98641 -1.5343,-2.22934 
-1.5343,-3.7287 0,-1.23299 0.259,-2.22949 0.7785,-2.98896 0.5194,-0.75972 
1.2668,-1.36138 2.2432,-1.80526 0.9862,-0.45324 2.1653,-0.76968 3.5361,-0.94654 
1.3708,-0.17816 2.8457,-0.31638 4.4241,-0.41464 l 0,-0.0873 c 0,-0.91791 
-0.3564,-1.55121 -1.0672,-1.90145 -0.7112,-0.34993 -1.7786,-0.52557 
-3.2013,-0.52557 -0.6439,0 -1.3968,0.11207 -2.2588,0.33246 -0.8618,0.22179 
-1.7032,0.50565 -2.5236,0.85065 l -0.4671,0 0,-4.00997 c 0.5405,-0.14826 
1.4126,-0.32238 2.6171,-0.52556 1.2045,-0.2016 2.4199,-0.30262 3.6453,-0.30262 
3.0118,0 5.2057,0.47577 6.5817,1.4279 1.3763,0.95154 2.0641,2.40445 
2.0641,4.35755 l 0,11.30477 -5.4211,0 z m -10.1824,1.7608 -15.4845,0 
0,-22.03235 5.8262,0 0,17.83001 9.6583,0 z m -30.7772,-4.33551 0,-3.46245 c 
-0.924,0.0873 -1.6721,0.16578 -2.2432,0.22915 -0.5717,0.0624 -1.1322,0.18919 
-1.6825,0.37747 -0.4782,0.15801 -0.8494,0.39723 -1.1135,0.71738 -0.2654,0.32145 
-0.3972,0.74728 -0.3972,1.27996 0,0.77964 0.2206,1.31444 0.6625,1.60548 
0.4409,0.29162 1.0935,0.43579 1.955,0.43579 0.4783,0 0.9666,-0.0997 
1.4645,-0.30995 0.4982,-0.20666 0.9501,-0.49816 1.3553,-0.87307 z m 0,2.57471 c 
-0.3737,0.29617 -0.7086,0.5617 -1.005,0.79958 -0.2968,0.2365 -0.6937,0.47326 
-1.1919,0.70989 -0.4882,0.22686 -0.9628,0.39997 -1.4253,0.51812 -0.4621,0.12446 
-1.1084,0.17817 -1.9397,0.17817 -1.5473,0 -2.8324,-0.4932 -3.8553,-1.4797 
-1.0226,-0.98641 -1.5344,-2.22934 -1.5344,-3.7287 0,-1.23299 0.2588,-2.22949 
0.7783,-2.98896 0.5194,-0.75972 1.2668,-1.36138 2.2433,-1.80526 0.9864,-0.45324 
2.1651,-0.76968 3.5361,-0.94654 1.3709,-0.17816 2.8456,-0.31638 4.4242,-0.41464 
l 0,-0.0873 c 0,-0.91791 -0.3564,-1.55121 -1.0674,-1.90145 -0.711,-0.34993 
-1.7785,-0.52557 -3.2013,-0.52557 -0.6438,0 -1.3968,0.11207 -2.2588,0.33246 
-0.8618,0.22179 -1.7031,0.50565 -2.5236,0.85065 l -0.4671,0 0,-4.00997 c 
0.5405,-0.14826 1.4124,-0.32238 2.617,-0.52556 1.2045,-0.2016 2.4198,-0.30262 
3.6454,-0.30262 3.0116,0 5.2057,0.47577 6.5817,1.4279 1.376,0.95154 
2.0642,2.40445 2.0642,4.35755 l 0,11.30477 -5.4212,0 z m -11.9103,1.7608 
-5.4523,0 0,-16.61678 5.4523,0 z m 0.1556,-18.98426 -5.7638,0 0,-4.03957 
5.7638,0 z m -7.8562,18.98426 -5.4523,0 0,-1.73128 c -0.3536,0.27645 
-0.756,0.57168 -1.2068,0.88802 -0.4519,0.31502 -0.8494,0.55293 -1.192,0.70991 
-0.4357,0.19791 -0.8667,0.34484 -1.2929,0.4445 -0.4261,0.0997 -0.9352,0.14827 
-1.5266,0.14827 -1.994,0 -3.5726,-0.78462 -4.7358,-2.35273 -1.1632,-1.56838 
-1.7447,-3.6646 -1.7447,-6.28863 0,-1.45008 0.198,-2.70773 0.5916,-3.77319 
0.3948,-1.06486 0.9403,-1.99261 1.6358,-2.78171 0.6339,-0.71986 1.4019,-1.28978 
2.3055,-1.7091 0.903,-0.41972 1.8589,-0.62899 2.8663,-0.62899 0.9141,0 
1.6643,0.0873 2.2509,0.27417 0.5866,0.18322 1.2697,0.46577 2.0487,0.85063 l 
0,-7.07286 5.4523,0 z m -5.4523,-4.58707 0,-8.15292 c -0.2705,-0.1281 
-0.6227,-0.2342 -1.0598,-0.31778 -0.4359,-0.0873 -0.8095,-0.12578 
-1.1222,-0.12578 -1.3086,0 -2.2925,0.43486 -2.9519,1.3021 -0.6601,0.86808 
-0.989,2.08137 -0.989,3.64006 0,1.6375 0.2627,2.82116 0.7872,3.55113 
0.5243,0.72981 1.3733,1.09472 2.5469,1.09472 0.4783,0 0.9603,-0.0873 
1.4489,-0.26635 0.4881,-0.17817 0.934,-0.41974 1.3397,-0.72486 z m 
-18.5084,5.03093 c -3.3026,0 -5.8339,-0.74975 -7.5944,-2.24912 -1.7603,-1.49937 
-2.6404,-3.63507 -2.6404,-6.4069 0,-2.71285 0.8208,-4.87807 2.4614,-6.49587 
1.6408,-1.61772 3.936,-2.42662 6.8855,-2.42662 2.6794,0 4.6941,0.68497 
6.0443,2.05672 1.3501,1.37121 2.0251,3.33415 2.0251,5.88906 l 0,1.86445 
-11.9484,0 c 0.051,0.76968 0.2232,1.41308 0.5145,1.93094 0.2916,0.51807 
0.675,0.92907 1.1533,1.23544 0.467,0.30539 1.0125,0.5256 1.6357,0.65884 
0.6228,0.13322 1.3034,0.19931 2.0407,0.19931 0.6339,0 1.2567,-0.0624 
1.8694,-0.19931 0.6128,-0.13321 1.1732,-0.30767 1.6823,-0.52556 0.4473,-0.18827 
0.8594,-0.38989 1.238,-0.60654 0.3784,-0.21673 0.6887,-0.40961 0.9267,-0.57662 
l 0.5765,0 0,4.27636 c -0.4472,0.16807 -0.8543,0.32236 -1.2229,0.46579 
-0.3688,0.1433 -0.8756,0.28883 -1.519,0.43715 -0.5915,0.14827 -1.2018,0.26405 
-1.8305,0.34762 -0.6276,0.0873 -1.3941,0.12578 -2.2977,0.12578 z m 
1.8071,-10.89037 c -0.037,-1.09476 -0.2989,-1.92855 -0.8021,-2.50071 
-0.503,-0.57168 -1.2747,-0.85814 -2.3133,-0.85814 -1.0586,1.4e-4 
-1.8875,0.30124 -2.4847,0.90295 -0.5966,0.60155 -0.9266,1.42043 -0.9888,2.45626 
z m -18.3805,10.44651 0,-8.30099 c 0,-0.81826 -0.013,-1.50923 -0.051,-2.07153 
-0.037,-0.56171 -0.1245,-1.0213 -0.2801,-1.37608 -0.1556,-0.35497 
-0.3972,-0.61401 -0.7248,-0.77717 -0.3275,-0.16296 -0.7871,-0.2443 
-1.3786,-0.2443 -0.4161,0 -0.8257,0.0873 -1.2306,0.25901 -0.4045,0.17311 
-0.8467,0.4174 -1.324,0.73233 l 0,11.77826 -5.4835,0 0,-8.30101 c 0,-0.80952 
-0.013,-1.49691 -0.051,-2.06418 -0.037,-0.56669 -0.1318,-1.02875 
-0.2874,-1.38346 -0.1558,-0.35496 -0.3972,-0.61401 -0.7249,-0.77716 
-0.3274,-0.16297 -0.781,-0.24428 -1.3632,-0.24428 -0.4473,0 -0.883,0.0997 
-1.3084,0.29663 -0.4262,0.19655 -0.8408,0.42984 -1.2464,0.69493 l 0,11.77831 
-5.45231,0 0,-16.61684 5.45231,0 0,1.83478 c 0.893,-0.71986 1.7344,-1.28229 
2.5237,-1.68682 0.7896,-0.40457 1.6773,-0.60652 2.664,-0.60652 1.0697,0 
2.0094,0.24154 2.8195,0.72482 0.8095,0.48321 1.4279,1.20311 1.8538,2.1602 
1.0487,-0.92782 2.038,-1.63983 2.9677,-2.13802 0.9291,-0.49815 1.8718,-0.74728 
2.8274,-0.74728 0.8094,0 1.537,0.12446 2.1808,0.37012 0.644,0.2466 
1.1894,0.61649 1.6357,1.10969 0.4882,0.53306 0.8544,1.167 1.0985,1.90146 
0.2443,0.73478 0.3659,1.69415 0.3659,2.87796 l 0,10.81639 z m -25.56481,0.32511 
c -2.2225,0 -3.84,-0.43349 -4.8525,-1.30209 -1.0126,-0.86809 -1.5189,-2.28852 
-1.5189,-4.26143 l 0,-7.76828 -2.0875,0 0,-3.61042 2.0875,0 0,-4.74976 5.4523,0 
0,4.74976 5.2498,0 0,3.61042 -5.2498,0 0,5.88906 c 0,0.58163 0,1.08975 
0.013,1.52401 0.011,0.43487 0.088,0.82323 0.2489,1.16948 0.1456,0.34487 
0.4023,0.61902 0.771,0.82075 0.3687,0.2016 0.9066,0.30399 1.6123,0.30399 
0.2916,0 0.6725,-0.0624 1.1445,-0.17817 0.4721,-0.12446 0.8021,-0.22685 
0.989,-0.32511 l 0.4669,0 0,3.65485 c -0.5915,0.14825 -1.2205,0.26404 
-1.8849,0.34763 -0.665,0.0873 -1.4799,0.12578 -2.4457,0.12578 z m 
-13.0141,0.12447 c -1.4434,0 -2.7649,-0.17313 -3.9645,-0.51809 -1.1994,-0.34486 
-2.2407,-0.87806 -3.1234,-1.59813 -0.8719,-0.71992 -1.5526,-1.62507 
-2.0408,-2.71524 -0.4882,-1.08975 -0.7324,-2.3748 -0.7324,-3.85451 0,-1.58819 
0.2654,-2.93961 0.7947,-4.0543 0.5293,-1.11464 1.2461,-2.03206 2.1497,-2.75213 
0.8717,-0.69126 1.8979,-1.20062 3.0766,-1.53157 1.1794,-0.33018 2.4069,-0.49568 
3.6843,-0.49568 0.9665,0 1.9317,0.11207 2.8976,0.31778 0.9664,0.21171 
1.9366,0.5505 2.913,1.0138 l 0,4.43902 -0.7011,0 c -0.2183,-0.197 
-0.4858,-0.41467 -0.8021,-0.6514 -0.3164,-0.23649 -0.6627,-0.45325 
-1.0362,-0.65133 -0.3949,-0.20667 -0.8407,-0.38253 -1.3398,-0.52559 
-0.4981,-0.1433 -1.0536,-0.21397 -1.6669,-0.21397 -1.3916,1.3e-4 
-2.4691,0.46082 -3.2325,1.38355 -0.7633,0.92287 -1.1444,2.16283 -1.1444,3.7214 
0,1.66712 0.4072,2.90996 1.2229,3.72871 0.8159,0.8195 1.898,1.228 3.2482,1.228 
0.685,1e-4 1.2877,-0.0748 1.807,-0.22179 0.5194,-0.14826 0.9665,-0.32512 
1.3397,-0.53304 0.3636,-0.20665 0.675,-0.42202 0.9354,-0.64392 0.259,-0.22179 
0.4832,-0.42201 0.67,-0.59904 l 0.7011,0 0,4.43914 c -0.3112,0.1281 
-0.6724,0.27647 -1.0822,0.44362 -0.4096,0.16806 -0.8281,0.30629 -1.254,0.41465 
-0.5293,0.13817 -1.0251,0.24431 -1.4877,0.31778 -0.462,0.0749 -1.0723,0.11206 
-1.8304,0.11206 z m -16.6422,0 c -3.3026,0 -5.834,-0.74976 -7.5944,-2.24912 
-1.7603,-1.49943 -2.6404,-3.63508 -2.6404,-6.40697 0,-2.71278 0.8208,-4.87802 
2.4613,-6.4958 1.6409,-1.61772 3.9361,-2.42666 6.8854,-2.42666 2.6795,0 
4.6943,0.68499 6.0445,2.05676 1.35,1.3712 2.025,3.33414 2.025,5.88906 l 
0,1.86445 -11.9483,0 c 0.05,0.76961 0.2227,1.41302 0.5143,1.93088 
0.2903,0.51813 0.6751,0.92912 1.1532,1.2355 0.4672,0.30537 1.0127,0.52557 
1.6358,0.65884 0.6227,0.13322 1.3033,0.19929 2.0407,0.19929 0.634,0 
1.2567,-0.0624 1.8695,-0.19929 0.6127,-0.13322 1.1731,-0.30768 1.6823,-0.52557 
0.4472,-0.18829 0.8594,-0.38987 1.2379,-0.60653 0.3784,-0.21674 0.6875,-0.40961 
0.9267,-0.57663 l 0.5766,0 0,4.2763 c -0.4459,0.16809 -0.8544,0.32285 
-1.223,0.46583 -0.3687,0.1433 -0.8755,0.28884 -1.519,0.43717 -0.5915,0.14826 
-1.2018,0.26405 -1.8304,0.34763 -0.6277,0.0873 -1.3943,0.12578 -2.2977,0.12578 
z m 1.8069,-10.89038 c -0.023,-1.09477 -0.2989,-1.92859 -0.8019,-2.50072 
-0.5044,-0.57168 -1.2749,-0.85814 -2.3135,-0.85814 -1.0586,1.5e-4 
-1.8875,0.30125 -2.4846,0.90296 -0.5965,0.60156 -0.9266,1.42043 -0.9889,2.45627 
z m -10.9502,-1.27262 -0.4518,0 c -0.2082,-0.0749 -0.5095,-0.12444 
-0.903,-0.15569 -0.3949,-0.0367 -0.8307,-0.05 -1.3086,-0.05 -0.5716,0 
-1.1707,0.0749 -1.7993,0.2365 -0.6289,0.15802 -1.2379,0.34487 -1.8305,0.56294 l 
0,11.12716 -5.4522,0 0,-16.6167 5.4522,0 0,2.3823 c 0.2489,-0.21675 
0.5942,-0.49072 1.0363,-0.82074 0.4408,-0.33018 0.8432,-0.5941 1.2069,-0.79211 
0.3949,-0.22685 0.8543,-0.42201 1.3785,-0.58412 0.5243,-0.16297 1.02,-0.2443 
1.4878,-0.2443 0.1768,1.5e-4 0.3738,0.005 0.5915,0.0132 0.2182,0.0103 
0.4161,0.023 0.5917,0.05 z m -14.014,11.71912 -5.4524,0 0,-16.61683 5.4524,0 z 
m 0.1557,-18.98428 -5.7638,0 0,-4.03959 5.7638,0 z m -6.8143,7.99026 c 0,2.0519 
-0.4721,3.88901 -1.4177,5.51183 -0.9452,1.62271 -2.1393,2.868 -3.583,3.73608 
-1.2043,0.73979 -2.5158,1.21555 -3.9334,1.42792 -1.4176,0.2117 -2.9262,0.31871 
-4.5254,0.31871 l -7.2594,0 0,-22.0324 7.1971,0 c 1.6305,0 3.1571,0.0997 
4.5799,0.29619 1.4228,0.19698 2.7573,0.67627 4.0037,1.43527 1.5266,0.92783 
2.7312,2.17761 3.6139,3.75101 0.883,1.57335 1.3243,3.42543 1.3243,5.55617 z m 
-5.9821,-0.0501 c 0,-1.45005 -0.2627,-2.69052 -0.787,-3.72136 -0.5244,-1.03125 
-1.3321,-1.8373 -2.4225,-2.41929 -0.7897,-0.41468 -1.6175,-0.6414 
-2.4848,-0.68126 -0.8668,-0.0367 -1.903,-0.0624 -3.1076,-0.0624 l -0.1121,0 
0,13.79052 0.1121,0 c 1.3084,0 2.4119,-0.023 3.3102,-0.0624 0.898,-0.05 
1.7525,-0.30903 2.5626,-0.79209 0.9553,-0.57167 1.6824,-1.36127 2.181,-2.36745 
0.4982,-1.00633 0.7472,-2.23435 0.7472,-3.68439 z m -30.55,11.48772 c -3.3025,0 
-5.834,-0.74976 -7.59429,-2.24913 -1.7603,-1.4994 -2.64046,-3.63507 
-2.64046,-6.40695 0,-2.71279 0.82074,-4.87802 2.46138,-6.49582 1.64087,-1.61771 
3.93607,-2.42666 6.88557,-2.42666 2.6793,0 4.694,0.68501 6.0443,2.05676 
1.35,1.37121 2.025,3.33415 2.025,5.88907 l 0,1.86444 -11.9484,0 c 0.05,0.76964 
0.2232,1.41304 0.5144,1.9309 0.2902,0.51812 0.675,0.9291 1.1532,1.23549 
0.4671,0.30537 1.0126,0.52557 1.6358,0.65884 0.6227,0.13322 1.3034,0.19931 
2.0407,0.19931 0.6339,0 1.2566,-0.0624 1.8694,-0.19931 0.6128,-0.13322 
1.1731,-0.30768 1.6823,-0.52557 0.4473,-0.18827 0.8593,-0.38988 1.238,-0.60653 
0.3788,-0.21673 0.6887,-0.40961 0.9266,-0.57663 l 0.5766,0 0,4.27631 c 
-0.4472,0.16807 -0.8543,0.32283 -1.2229,0.46582 -0.3689,0.14331 -0.8757,0.28886 
-1.519,0.43717 -0.5916,0.14825 -1.2018,0.26405 -1.8303,0.34763 -0.629,0.0873 
-1.3943,0.12578 -2.2979,0.12578 z m 1.8071,-10.89037 c -0.023,-1.09476 
-0.299,-1.9286 -0.8021,-2.50074 -0.5032,-0.57167 -1.2748,-0.85812 
-2.3134,-0.85812 -1.0586,1.5e-4 -1.8875,0.30124 -2.4847,0.90295 -0.5978,0.60156 
-0.9266,1.42043 -0.9888,2.45627 z m -13.03259,10.4465 -5.45245,0 0,-23.02388 
5.45245,0 z m -6.45404,-8.53775 c -9e-5,2.65356 -0.70864,4.79407 
-2.12647,6.42174 -1.41754,1.62768 -3.16487,2.44145 -5.24194,2.44145 -0.87305,0 
-1.63051,-0.0997 -2.27442,-0.2815 -0.64385,-0.18828 -1.32936,-0.47827 
-2.05634,-0.87309 l 0,6.92481 -5.45231,0 0,-22.713 5.45231,0 0,1.73113 c 
0.79957,-0.65135 1.61499,-1.1782 2.44579,-1.58317 0.83071,-0.40504 
1.79148,-0.60658 2.88197,-0.60658 2.02508,0 3.59337,0.76473 4.70451,2.29348 
1.11093,1.52905 1.66681,3.61047 1.6669,6.24431 z m -5.57693,0.0997 c 0,-1.61784 
-0.26268,-2.79166 -0.78713,-3.52164 -0.52434,-0.72983 -1.34233,-1.09471 
-2.45352,-1.09471 -0.48824,0 -0.97394,0.0749 -1.45653,0.2218 -0.48328,0.14826 
-0.95779,0.37012 -1.42542,0.66632 l 0,8.36016 c 0.2902,0.12446 0.61027,0.2016 
0.95771,0.25165 0.34763,0.0501 0.76101,0.0749 1.238,0.0749 1.32927,0 
2.31587,-0.41238 2.95978,-1.23552 0.64392,-0.82323 0.96647,-2.06419 
0.96647,-3.72134 z m -19.19066,8.4381 0,-8.30097 c 0,-0.81827 -0.0132,-1.50925 
-0.0501,-2.07155 -0.023,-0.56172 -0.12445,-1.02128 -0.28011,-1.37611 
-0.1557,-0.35498 -0.39722,-0.61398 -0.72486,-0.77713 -0.32742,-0.16297 
-0.78713,-0.2443 -1.37856,-0.2443 -0.41604,0 -0.82576,0.0873 -1.23049,0.259 
-0.40504,0.17311 -0.84694,0.41742 -1.32405,0.73229 l 0,11.7783 -5.48357,0 
0,-8.30101 c 0,-0.80955 -0.0132,-1.49689 -0.0496,-2.06421 -0.0367,-0.56666 
-0.13224,-1.02872 -0.28792,-1.3834 -0.1557,-0.35498 -0.39723,-0.61402 
-0.72483,-0.77717 -0.32741,-0.16297 -0.78087,-0.24431 -1.36312,-0.24431 
-0.44589,0 -0.88301,0.0997 -1.30847,0.2962 -0.42614,0.197 -0.84192,0.42982 
-1.24629,0.69496 l 0,11.77826 -5.45231,0 0,-16.61678 5.45231,0 0,1.83478 c 
0.89297,-0.71985 1.73438,-1.28231 2.52362,-1.68681 0.78958,-0.40503 
1.67723,-0.60659 2.66384,-0.60659 1.06987,0 2.00956,0.24155 2.81956,0.72486 
0.81079,0.48324 1.42806,1.2031 1.85389,2.16023 1.04864,-0.92783 
2.03817,-1.63988 2.9676,-2.13804 0.92912,-0.4982 1.87192,-0.74727 
2.82741,-0.74727 0.80954,0 1.53701,0.12445 2.1809,0.36968 0.64389,0.24658 
1.18939,0.61648 1.63578,1.10966 0.4882,0.53307 0.85437,1.167 1.09848,1.90142 
0.24385,0.73484 0.36599,1.69421 0.36599,2.87797 l 0,10.81644 z m -23.17395,0 
-5.45231,0 0,-16.61682 5.45231,0 z m 0.1557,-18.98429 -5.76387,0 0,-4.03959 
5.76387,0 z m -16.41134,19.38385 c -1.77585,0 -3.33626,-0.16297 
-4.68109,-0.48824 -1.34493,-0.32512 -2.59375,-0.72982 -3.74651,-1.21303 l 
0,-5.2381 0.52927,0 c 1.16328,0.93656 2.44566,1.65722 3.84769,2.16036 
1.40211,0.50316 2.76252,0.75472 4.08142,0.75472 0.33246,0 0.77092,-0.0367 
1.31646,-0.0997 0.5455,-0.0749 0.98388,-0.17819 1.31629,-0.32512 
0.40501,-0.16806 0.74727,-0.40228 1.0275,-0.70246 0.2801,-0.30124 
0.42107,-0.69745 0.42107,-1.19063 0,-0.55298 -0.22777,-1.00133 
-0.68495,-1.34656 -0.45691,-0.34486 -1.00259,-0.59656 -1.6358,-0.75475 
-0.78961,-0.19701 -1.63299,-0.38482 -2.53137,-0.56171 -0.89793,-0.17818 
-1.73699,-0.39493 -2.51592,-0.65135 -1.79665,-0.60157 -3.08442,-1.4106 
-3.86334,-2.42659 -0.77841,-1.0163 -1.16822,-2.28864 -1.16822,-3.81767 
0,-2.06159 0.91915,-3.73123 2.75742,-5.00871 1.83813,-1.27744 4.13335,-1.9161 
6.88541,-1.91619 1.38131,9e-5 2.75468,0.13321 4.12041,0.39998 1.36564,0.26633 
2.58854,0.62644 3.6686,1.07978 l 0,5.03094 -0.51438,0 c -0.86185,-0.69995 
-1.91349,-1.29227 -3.15459,-1.77559 -1.24046,-0.48327 -2.51592,-0.72487 
-3.82435,-0.72487 -0.5094,0 -0.96646,0.0367 -1.37089,0.0997 -0.40457,0.0749 
-0.83071,0.20159 -1.27743,0.39998 -0.3637,0.15801 -0.67753,0.39216 
-0.9428,0.7024 -0.26543,0.30998 -0.39723,0.65884 -0.39723,1.0437 0,0.56165 
0.21033,1.0088 0.63146,1.33911 0.4211,0.33018 1.23299,0.62892 2.43796,0.89545 
0.7784,0.16809 1.52927,0.33018 2.25101,0.48819 0.72234,0.15801 1.49288,0.37472 
2.31342,0.65139 1.60962,0.553 2.80659,1.29474 3.59074,2.22698 0.7846,0.9328 
1.17566,2.1628 1.17566,3.69175 0,2.18998 -0.90541,3.95078 -2.71829,5.28239 
-1.81237,1.33177 -4.26064,1.99771 -7.34512,1.99771 z" />
+  <path
+     inkscape:connector-curvature="0"
+     
style="font-variant:normal;font-weight:bold;font-size:183.04396057px;font-family:Tahoma;-inkscape-font-specification:Tahoma-Bold;writing-mode:lr-tb;fill:#173556;fill-opacity:1;fill-rule:nonzero;stroke:none;filter:url(#filter4559)"
+     id="path4093"
+     d="m 574.34383,239.08203 -149.7909,0 0,-213.13171 56.3599,0 0,172.48069 
93.431,0 z M 409.86703,132.7308 c -2e-4,19.84853 -4.5713,37.62146 
-13.71321,53.31878 -9.1426,15.69745 -20.6958,27.74484 -34.66,36.14224 
-11.6539,7.15695 -24.3376,11.76109 -38.0506,13.81286 -13.7132,2.05162 
-28.3056,3.07735 -43.7769,3.07735 l -70.22389,0 0,-213.13171 69.62115,0 c 
15.77264,2.6e-4 30.54074,0.954 44.30434,2.86276 13.7634,1.90866 26.6729,6.53687 
38.7287,13.88433 14.768,8.97019 26.4216,21.06516 34.9613,36.28537 
8.53911,15.2204 12.80891,33.13648 12.80911,53.74802 z m -57.86701,-0.42981 c 
-1e-4,-14.02745 -2.5368,-26.02718 -7.6102,-35.99916 -5.0735,-9.97177 
-12.8845,-17.77272 -23.4329,-23.40298 -7.6354,-4.0077 -15.6475,-6.20243 
-24.036,-6.5843 -8.38873,-0.38113 -18.40996,-0.57289 -30.06368,-0.57289 l 
-1.0549,0 0,133.40406 1.0549,0 c 12.65829,1.4e-4 23.33259,-0.21399 
32.02278,-0.6439 8.69,-0.42983 16.953,-2.98193 24.7892,-7.65786 9.2427,-5.5345 
16.2751,-13.16856 21.0973,-22.90191 4.8222,-9.73326 7.2334,-21.61369 
7.2335,-35.64122 z M 101.92106,242.94655 c -17.17941,0 -32.27405,-1.57449 
-45.283906,-4.72343 -13.01003,-3.14914 -25.09082,-7.06157 -36.24226,-11.7373 l 
0,-50.67074 5.12373,0 c 11.25184,9.06547 23.65907,16.03148 37.22169,20.89806 
13.562456,4.86668 26.723166,7.30004 39.482116,7.30004 3.21476,0 
7.45935,-0.33384 12.73366,-1.00135 5.27431,-0.66756 9.5188,-1.7176 
12.73379,-3.14896 3.91788,-1.62221 7.23325,-3.88854 9.94586,-6.79914 
2.71243,-2.91032 4.0687,-6.75116 4.06884,-11.52259 -1.4e-4,-5.34367 
-2.21041,-9.68554 -6.6306,-13.02543 -4.42059,-3.3398 -9.69491,-5.77317 
-15.823,-7.30004 -7.63528,-1.9084 -15.79803,-3.72154 -24.48802,-5.43922 
-8.69015,-1.71758 -16.80248,-3.81691 -24.33717,-6.29807 -17.380266,-5.82083 
-29.837686,-13.64559 -37.372456,-23.4745 -7.53478,-9.82864 -11.30216,-22.13849 
-11.30216,-36.92948 0,-19.94364 8.89098,-36.09428 26.67305,-48.45205 
17.782016,-12.35728 39.984416,-18.53606 66.607206,-18.5363 13.36163,2.4e-4 
26.6479,1.28842 39.8589,3.86472 13.2108,2.57668 25.04036,6.05971 
35.48874,10.44904 l 0,48.66676 -4.97287,0 c -8.33865,-6.77511 
-18.51053,-12.50051 -30.51587,-17.17651 -12.00545,-4.67565 -24.33732,-7.01362 
-36.99561,-7.01372 -4.92288,1e-4 -9.34321,0.33385 -13.26124,1.00132 
-3.91813,0.66879 -8.03707,1.95638 -12.3569,3.86477 -3.51638,1.52687 
-6.55539,3.7932 -9.11715,6.79898 -2.56183,3.006 -3.84281,6.36981 
-3.84267,10.09117 -1.4e-4,5.43935 2.03431,9.75731 6.10318,12.95397 
4.06862,3.1968 11.92995,6.08349 23.58381,8.65986 7.53455,1.6223 
14.79312,3.19678 21.77542,4.72345 6.98207,1.5269 14.44141,3.62633 
22.37827,6.29807 15.57163,5.34392 27.14999,12.52465 34.73514,21.54214 
7.58483,9.01775 11.37736,20.92208 11.37746,35.71286 -1e-4,21.18446 
-8.76551,38.21773 -26.29625,51.10013 -17.531,12.88234 -41.21531,19.32349 
-71.05273,19.32349 z" />
+  <text
+     xml:space="preserve"
+     
style="font-style:normal;font-weight:normal;font-size:40px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ff7800;fill-opacity:1;stroke:#ff0000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+     x="486.26666"
+     y="173.16196"
+     id="text4583"
+     sodipodi:linespacing="125%"><tspan
+       sodipodi:role="line"
+       id="tspan4585"
+       x="486.26666"
+       y="173.16196"
+       
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:200px;font-family:'DejaVu
 Sans';-inkscape-font-specification:'DejaVu Sans 
Bold';letter-spacing:-10px;fill:#ff7800;fill-opacity:1;stroke:#ff0000;stroke-width:3;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       dx="0">BGI </tspan></text>
+</svg>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SDL_bgi-2.0.6/doc/functions.txt 
new/SDL_bgi-2.0.8/doc/functions.txt
--- old/SDL_bgi-2.0.6/doc/functions.txt 2015-11-30 17:18:33.000000000 +0100
+++ new/SDL_bgi-2.0.8/doc/functions.txt 2016-11-09 11:40:09.000000000 +0100
@@ -36,6 +36,8 @@
 
 int event (void);
 
+int eventtype (void);
+
 void fillellipse (int x, int y, int xradius, int yradius);
 
 void fillpoly (int numpoints, int *polypoints);
Files old/SDL_bgi-2.0.6/doc/sdl_bgi-quickref.pdf and 
new/SDL_bgi-2.0.8/doc/sdl_bgi-quickref.pdf differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SDL_bgi-2.0.6/doc/sdl_bgi-quickref.tex 
new/SDL_bgi-2.0.8/doc/sdl_bgi-quickref.tex
--- old/SDL_bgi-2.0.6/doc/sdl_bgi-quickref.tex  2016-02-29 09:30:51.000000000 
+0100
+++ new/SDL_bgi-2.0.8/doc/sdl_bgi-quickref.tex  2016-11-15 14:42:52.000000000 
+0100
@@ -1,6 +1,6 @@
 % sdl_bgi-quickref.tex
 %
-% Guido Gonzato, February 29, 2016
+% Guido Gonzato, November 15, 2016
 
 \documentclass[a4paper,11pt]{article}
 \usepackage{graphicx}
@@ -17,7 +17,7 @@
 
 \newcommand{\SDLbgi}{SDL\_bgi}
 
-\newcommand{\version}{2.0.6}        % !!! Change here !!!
+\newcommand{\version}{2.0.8}        % !!! Change here !!!
 
 \newcommand{\V}{\texttt{void}}      % void
 \newcommand{\I}{\texttt{int}}       % int
@@ -57,7 +57,7 @@
 \maketitle
 
 \begin{center}
-  \includegraphics[width=0.5\textwidth]{sdlbgi.png}  
+  \includegraphics[width=0.5\textwidth]{SDL_bgi_logo.png}  
 \end{center}
 
 % -----
@@ -127,7 +127,7 @@
 \begin{small}
 \begin{verbatim}
 #define _SDL_BGI_H
-#define SDL_BGI_VERSION 2.0.6
+#define SDL_BGI_VERSION 2.0.7
 
 // everything gets drawn here
 
@@ -1201,14 +1201,6 @@
 % -----
 
 \begin{bgi}
-\V{} \func{event} (\V{});
-\end{bgi}
-
-Returns 1 if an event (mouse click or key press) has occurred.
-
-% -----
-
-\begin{bgi}
 \I{} \func{getch} (\V{});
 \end{bgi}
 
@@ -1287,11 +1279,20 @@
 
 % -----
 
-% \begin{bgi}
-% \texttt{unsigned long} \func{converttorgb} (\I{} \A{color});
-% \end{bgi}
+\begin{bgi}
+\V{} \func{event} (\V{});
+\end{bgi}
+
+Returns 1 if an event (mouse click or key press) has occurred.
+
+% -----
+
+\begin{bgi}
+\V{} \func{eventtype} (\V{});
+\end{bgi}
 
-% Converts a BGI color to its RGB equivalent.
+Returns the type of the last event; either \T{SDL\_KEYPRESS} or
+\T{SDL\_MOUSEBUTTONDOWN}.
 
 % -----
 
Files old/SDL_bgi-2.0.6/doc/sdlbgi.png and new/SDL_bgi-2.0.8/doc/sdlbgi.png 
differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SDL_bgi-2.0.6/doc/using.txt 
new/SDL_bgi-2.0.8/doc/using.txt
--- old/SDL_bgi-2.0.6/doc/using.txt     2015-12-23 08:52:07.000000000 +0100
+++ new/SDL_bgi-2.0.8/doc/using.txt     2016-11-11 13:45:47.000000000 +0100
@@ -10,39 +10,6 @@
 Compiling programs
 ------------------
 
-To port an old BGI program to SDL_bgi, in many cases all you have to
-do is change the line that reads:
-
-  #include <graphics.h>
-
-to
-
-  #include <SDL2/SDL_bgi.h>
-  
-or
-
-  #include "SDL_bgi.h"
-
-providing the right -I directive (e.g. -I/usr/include/SDL2/) to the
-compiler.
-
-But you could also do:
-
-  $ sudo ln -s /usr/include/SDL2/SDL_bgi.h /usr/include/graphics.h
-
-which lets you leave old programs untouched - unless they also include
-dos.h and conio.h, which you'll have to remove or replace. Very basic
-dos.h and conio.h are provided in the test/ directory; they're good
-enough to compile the original bgidemo.c (not provided: it's not FOSS)
-unmodified.
-
-The graphics.h link must be created manually, since other software
-packages may provide it (e.g. Allegro, wx, and others).
-
-SDL_bgi.h defines the _SDL_BGI_H constant. You may check for its
-presence and write programs that employ SDL_BGI extensions; please
-have a look at the test program fern.c.
-
 To compile a program:
 
   $ gcc -o program program.c -lSDL_bgi -lSDL2
@@ -53,8 +20,13 @@
   int gd = DETECT, gm;
   initgraph (&gd, &gm, "");
 
-will open an 800x600 window, mimicking SVGA graphics. To specify the
-window size, you can use the new SDL driver:
+will open an 800x600 window, mimicking SVGA graphics. Very basic dos.h
+and conio.h are provided in the test/ directory; they're good enough
+to compile the original bgidemo.c (not provided: it's not FOSS)
+unmodified. Please note that non-BGI functions such a gotoxy() are
+*not* implemented.
+
+To specify the window size, you can use the new SDL driver:
 
   gd = SDL;
   gm = <mode>;
@@ -73,6 +45,10 @@
 
 You may want to use initwindow(int width, int height) instead.
 
+SDL_bgi.h defines the _SDL_BGI_H constant. You may check for its
+presence and write programs that employ SDL_BGI extensions; please
+have a look at the test program fern.c.
+
 
 Screen update
 -------------
@@ -203,6 +179,8 @@
 
 - int event(void) is a non-blocking version of getevent().
 
+- int eventtype() returns the type of the last event.
+
 - void readimagefile(char *filename, int x1, int y1, int x2, int y2)
 reads a .bmp file and displays it immediately (i.e. no refresh
 needed).
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SDL_bgi-2.0.6/sdl_bgi.spec 
new/SDL_bgi-2.0.8/sdl_bgi.spec
--- old/SDL_bgi-2.0.6/sdl_bgi.spec      2016-01-15 10:40:56.000000000 +0100
+++ new/SDL_bgi-2.0.8/sdl_bgi.spec      2016-11-15 15:03:44.000000000 +0100
@@ -1,6 +1,6 @@
 Summary:    BGI-compatible 2D graphics C library
 Name:       SDL_bgi
-Version:    2.0.6
+Version:    2.0.8
 Release:    1
 License:    ZLib
 Group:      Libraries
@@ -28,36 +28,30 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 cd src
-mkdir -p $RPM_BUILD_ROOT/%{_libdir}
+mkdir -p $RPM_BUILD_ROOT/usr/lib/
 mkdir -p $RPM_BUILD_ROOT/%{_includedir}
 mkdir -p $RPM_BUILD_ROOT/%{_includedir}/SDL2/
-cp libSDL_bgi.so $RPM_BUILD_ROOT/%{_libdir}
-cp SDL_bgi.h $RPM_BUILD_ROOT/%{_includedir}/SDL2/
+/usr/bin/install -m 644 lib%{name}.so.%{version} $RPM_BUILD_ROOT/usr/lib/
+/usr/bin/install -m 644 SDL_bgi.h $RPM_BUILD_ROOT/%{_includedir}/SDL2/
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if [ -r /usr/include/graphics.h ]; then
-  echo "graphics.h detected - skipping";
-else 
-  echo "creating symbolic link graphics.h -> SDL_bgi.h";
-  ln -sf /usr/include/SDL2/SDL_bgi.h /usr/include/graphics.h
-fi
+/bin/ln -sf /usr/include/SDL2/SDL_bgi.h /usr/include/graphics.h
+cd /usr/lib; /bin/ln -sf lib%{name}.so.%{version} /usr/lib/lib%{name}.so
 
 %%postun
-if [ -r /usr/include/graphics.h ]; then
-  echo "Warning - /usr/include/graphics.h not deleted."
-fi
+/bin/rm -f /usr/include/graphics.h
+/bin/rm -f /usr/lib/lib%{name}.so
 
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog doc/ INSTALL LICENSE README
 %doc sdl_bgi.spec test/ TODO VERSION
-%attr(755,root,root) %{_libdir}/*
+%attr(644,root,root) /usr/lib/*
 %attr(644,root,root) %{_includedir}/SDL2/*
 
 %changelog
 * Thu Nov 6 2014 Guido Gonzato <guido.gonzato at gmail.com>
 This is a generic rpm, buildable on Ubuntu
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SDL_bgi-2.0.6/src/Makefile 
new/SDL_bgi-2.0.8/src/Makefile
--- old/SDL_bgi-2.0.6/src/Makefile      2016-02-19 08:27:42.000000000 +0100
+++ new/SDL_bgi-2.0.8/src/Makefile      2016-11-15 14:44:16.000000000 +0100
@@ -1,8 +1,10 @@
 # Makefile for SDL_bgi
 
-SRC = SDL_bgi.c
-OBJ = SDL_bgi.o
-LIB = libSDL_bgi.so
+VERSION = 2.0.8
+NAME = SDL_bgi
+SRC = $(NAME).c
+OBJ = $(NAME).o
+LIB = lib$(NAME).so.$(VERSION)
 INC_DIR = /usr/include/SDL2/
 LIB_DIR = /usr/lib/
 
@@ -16,19 +18,23 @@
 OBJ:
        $(CC) $(CFLAGS) $(SRC)
 
-libSDL_bgi.so: $(OBJ)
-       $(CC) -shared -o $(LIB) $(OBJ)
+$(LIB): $(OBJ)
+       $(CC) -shared -o $(LIB) $(OBJ) ; \
+       strip $(LIB); \
+       ln -s ./$(LIB) lib$(NAME).so
 
 install: $(LIB) SDL_bgi.h
-       cp $(LIB) $(LIB_DIR); \
-       cp SDL_bgi.h $(INC_DIR)
+       cp $(LIB) $(LIB_DIR) ; \
+       cp SDL_bgi.h $(INC_DIR) ; \
+       ln -sf $(INC_DIR)/SDL_bgi.h /usr/include/graphics.h
 
 uninstall:
-       rm -f $(INC_DIR)\SDL_bgi.h
-       rm -f $(LIB_DIR)\$(LIB)
+       /bin/rm -f $(INC_DIR)/SDL_bgi.h ; \
+       /bin/rm -f $(LIB_DIR)/$(LIB) ; \
+       /bin/rm -f /usr/include/graphics.h
 
 test: all
        cd test; make
 
 clean:
-       rm -f $(OBJ) $(LIB)
+       rm -f $(OBJ) $(LIB) lib$(NAME).so
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SDL_bgi-2.0.6/src/SDL_bgi.c 
new/SDL_bgi-2.0.8/src/SDL_bgi.c
--- old/SDL_bgi-2.0.6/src/SDL_bgi.c     2016-02-29 09:29:38.000000000 +0100
+++ new/SDL_bgi-2.0.8/src/SDL_bgi.c     2016-11-15 13:41:16.000000000 +0100
@@ -3,7 +3,7 @@
 // A BGI (Borland Graphics Library) implementation based on SDL2.
 // Easy to use, pretty fast, and useful for porting old programs.
 // Guido Gonzato, PhD
-// February 29, 2016
+// November 15, 2016
 
 #include <math.h>
 #include "SDL_bgi.h"
@@ -33,8 +33,8 @@
 // copied to bgi_renderer, and finally bgi_renderer is made present.
 
 // The palette contains the BGI colors, entries 0:MAXCOLORS;
-// then three entries for temporary fg, bg, fill RGB colors allocated 
-// with COLOR(); then user-defined RGB colors
+// then three entries for temporary fg, bg, and fill RGB colors
+// allocated with COLOR(); then user-defined RGB colors
 
 static Uint32
   palette[1 + MAXCOLORS + 3 + PALETTE_SIZE]; // all colors
@@ -74,6 +74,7 @@
   bgi_fg_color = WHITE,   // index of BGI foreground color
   bgi_bg_color = BLACK,   // index of BGI background color
   bgi_fill_color = WHITE, // index of BGI fill color
+  bgi_last_event = 0,     // mouse click or keyboard event
   bgi_mouse_x,            // coordinates of last mouse click
   bgi_mouse_y, 
   bgi_font_width = 8,     // default font width and height  
@@ -551,8 +552,11 @@
 
   if (SDL_PollEvent (&event)) {
     if ( (event.type == SDL_KEYDOWN) ||
-         (event.type == SDL_MOUSEBUTTONDOWN) )
+         (event.type == SDL_MOUSEBUTTONDOWN) ) {
+      SDL_PushEvent (&event); // don't disrupt the event
+      bgi_last_event = event.type;
       return YEAH;
+    }
   }
   return NOPE;
 
@@ -560,6 +564,16 @@
 
 // -----
 
+int eventtype (void)
+{
+  // Returns the type of event occurred
+  
+  return (bgi_last_event);
+  
+} // eventtype ()
+
+// -----
+
 // Yeah, replicated code. The thing is, I can't catch the bug.
 
 void _ellipse (int cx, int cy, int xradius, int yradius)
@@ -592,7 +606,7 @@
     // 1st set of points, y' > -1
  
     // normally, I'd put the line_fill () code here; but
-    // the outline getd overdrawn, can't find out why.
+    // the outline gets overdrawn, can't find out why.
     _putpixel (cx + x, cy - y);
     _putpixel (cx - x, cy - y);
     _putpixel (cx - x, cy + y);
@@ -1152,12 +1166,14 @@
       switch (event.type) {
       
       case SDL_MOUSEBUTTONDOWN:
+       bgi_last_event = SDL_MOUSEBUTTONDOWN;
         bgi_mouse_x = event.button.x;
         bgi_mouse_y = event.button.y;
         return event.button.button;
         break;
       
       case SDL_KEYDOWN:
+       bgi_last_event = SDL_KEYDOWN;
         bgi_mouse_x = bgi_mouse_y = -1;
         return event.key.keysym.sym;
         break;
@@ -1372,7 +1388,7 @@
   // Returns the size of the palette.
   
   // !!! BUG - don't ignore the parameter
-  return 1 + MAXCOLORS + 2 + PALETTE_SIZE;
+  return 1 + MAXCOLORS + 3 + PALETTE_SIZE;
 } // getpalettesize ()
 
 // -----
@@ -1682,7 +1698,8 @@
   
   bgi_texture = SDL_CreateTexture (bgi_renderer,
                                   SDL_PIXELFORMAT_ARGB8888,
-                                  SDL_TEXTUREACCESS_STREAMING,
+                                  SDL_TEXTUREACCESS_STATIC,
+                                  // SDL_TEXTUREACCESS_STREAMING,
                                   bgi_maxx + 1,
                                   bgi_maxy + 1);
   if (NULL == bgi_texture) {
@@ -3063,7 +3080,7 @@
   // Sets the current drawing color using the n-th color index
   // in the RGB palette.
   
-  bgi_fg_color = 1 + MAXCOLORS + 2 + index;
+  bgi_fg_color = 1 + MAXCOLORS + 3 + index;
 } // setrgbcolor ()
 
 // -----
@@ -3073,7 +3090,7 @@
   // Sets the n-th entry in the RGB palette specifying the r, g,
   // and b components.
   
-  palette[1 + MAXCOLORS + 2 + colornum] = 
+  palette[1 + MAXCOLORS + 3 + colornum] = 
     0xff000000 | red << 16 | green << 8 | blue;
 } // setrgbpalette ()
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SDL_bgi-2.0.6/src/SDL_bgi.h 
new/SDL_bgi-2.0.8/src/SDL_bgi.h
--- old/SDL_bgi-2.0.6/src/SDL_bgi.h     2016-02-29 09:45:22.000000000 +0100
+++ new/SDL_bgi-2.0.8/src/SDL_bgi.h     2016-11-15 14:41:41.000000000 +0100
@@ -3,14 +3,14 @@
 // A BGI (Borland Graphics Library) implementation based on SDL2.
 // Easy to use, pretty fast, and useful for porting old programs.
 // Guido Gonzato, PhD
-// February 29, 2016
+// November 15, 2016
 
 #include <SDL2/SDL.h>
 
 #ifndef _SDL_BGI_H
 #define _SDL_BGI_H
 
-#define SDL_BGI_VERSION 2.0.6
+#define SDL_BGI_VERSION 2.0.8
 
 #define NOPE 0
 #define YEAH 1
@@ -21,6 +21,8 @@
 extern SDL_Renderer *bgi_renderer;
 extern SDL_Texture  *bgi_texture;
 
+// type of last event: SDL_KEYDOWN or SDL_MOUSEBUTTONDOWN
+
 // available visual pages
 
 #define VPAGES 4
@@ -270,6 +272,7 @@
 void drawpoly (int, int *);
 void ellipse (int, int, int, int, int, int);
 int  event (void);
+int  eventtype (void);
 void fillellipse (int, int, int, int);
 void fillpoly (int, int *);
 void floodfill (int, int, int);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SDL_bgi-2.0.6/test/hopalong.c 
new/SDL_bgi-2.0.8/test/hopalong.c
--- old/SDL_bgi-2.0.6/test/hopalong.c   2016-02-29 23:05:14.000000000 +0100
+++ new/SDL_bgi-2.0.8/test/hopalong.c   2016-11-10 10:34:50.000000000 +0100
@@ -81,8 +81,13 @@
        stop = 1;
     }
   }
-   
+  
   closegraph ();
+  if (SDL_KEYDOWN == eventtype())
+    puts ("Key pressed.");
+  else
+    puts ("Mouse clicked.");
+  
   return 0;
 }
 
Files old/SDL_bgi-2.0.6/test/logo.bmp and new/SDL_bgi-2.0.8/test/logo.bmp differ


Reply via email to