LICENSE

Fri, 24 Jul 2015 04:24:38 +0300

author
Teemu Piippo <tsapii@utu.fi>
date
Fri, 24 Jul 2015 04:24:38 +0300
changeset 100
d301ead29d7c
parent 75
5f8a03274d75
child 109
e4966d7e615d
permissions
-rw-r--r--

Apply Leonard's patch for fixing the colors:

The colors were broken again.
* isprint for some reason returned true when the given byte is higher than 255.
The char cast of the byte was then printed which resulted in odd characters
popping up. Black appeared as ^@ which is NULL in caret notation.
* After that, the colors were all messed up because the RLINE enum didn't take
in account the color swapping.
So instead of messing up the enum order/number I went for a new "range-like"
method.
* After fixing all of that, I noticed the Interface::render_colorline had a
broken loop since the VS2010 commits.
This made the lines not print entierely and messed up the colors etc.

74
ea7786f45a60 Added LICENSE (yay more license header copies)
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
1 Copyright 2014, 2015 Teemu Piippo
ea7786f45a60 Added LICENSE (yay more license header copies)
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
2 All rights reserved.
ea7786f45a60 Added LICENSE (yay more license header copies)
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
3
ea7786f45a60 Added LICENSE (yay more license header copies)
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
4 Redistribution and use in source and binary forms, with or without
ea7786f45a60 Added LICENSE (yay more license header copies)
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
5 modification, are permitted provided that the following conditions
ea7786f45a60 Added LICENSE (yay more license header copies)
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
6 are met:
ea7786f45a60 Added LICENSE (yay more license header copies)
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
7
ea7786f45a60 Added LICENSE (yay more license header copies)
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
8 1. Redistributions of source code must retain the above copyright
ea7786f45a60 Added LICENSE (yay more license header copies)
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
9 notice, this list of conditions and the following disclaimer.
ea7786f45a60 Added LICENSE (yay more license header copies)
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
10 2. Redistributions in binary form must reproduce the above copyright
ea7786f45a60 Added LICENSE (yay more license header copies)
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
11 notice, this list of conditions and the following disclaimer in the
ea7786f45a60 Added LICENSE (yay more license header copies)
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
12 documentation and/or other materials provided with the distribution.
ea7786f45a60 Added LICENSE (yay more license header copies)
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
13 3. Neither the name of the copyright holder nor the names of its
ea7786f45a60 Added LICENSE (yay more license header copies)
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
14 contributors may be used to endorse or promote products derived from
ea7786f45a60 Added LICENSE (yay more license header copies)
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
15 this software without specific prior written permission.
ea7786f45a60 Added LICENSE (yay more license header copies)
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
16
ea7786f45a60 Added LICENSE (yay more license header copies)
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
17 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
ea7786f45a60 Added LICENSE (yay more license header copies)
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
18 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
ea7786f45a60 Added LICENSE (yay more license header copies)
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
19 TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
ea7786f45a60 Added LICENSE (yay more license header copies)
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
20 PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER
ea7786f45a60 Added LICENSE (yay more license header copies)
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
21 OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
ea7786f45a60 Added LICENSE (yay more license header copies)
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
22 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
ea7786f45a60 Added LICENSE (yay more license header copies)
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
23 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
ea7786f45a60 Added LICENSE (yay more license header copies)
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
24 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
ea7786f45a60 Added LICENSE (yay more license header copies)
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
25 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
ea7786f45a60 Added LICENSE (yay more license header copies)
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
26 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
75
5f8a03274d75 Added mention of STONE layer to the LICENSE
Teemu Piippo <crimsondusk64@gmail.com>
parents: 74
diff changeset
27 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5f8a03274d75 Added mention of STONE layer to the LICENSE
Teemu Piippo <crimsondusk64@gmail.com>
parents: 74
diff changeset
28
5f8a03274d75 Added mention of STONE layer to the LICENSE
Teemu Piippo <crimsondusk64@gmail.com>
parents: 74
diff changeset
29 ----------------------------------------------------------------------------------------------------
5f8a03274d75 Added mention of STONE layer to the LICENSE
Teemu Piippo <crimsondusk64@gmail.com>
parents: 74
diff changeset
30
5f8a03274d75 Added mention of STONE layer to the LICENSE
Teemu Piippo <crimsondusk64@gmail.com>
parents: 74
diff changeset
31 Uses STONE layer by Timothy Landers:
5f8a03274d75 Added mention of STONE layer to the LICENSE
Teemu Piippo <crimsondusk64@gmail.com>
parents: 74
diff changeset
32
5f8a03274d75 Added mention of STONE layer to the LICENSE
Teemu Piippo <crimsondusk64@gmail.com>
parents: 74
diff changeset
33 Replacement for older Skulltag Launcher Protocol's huffman.cpp
5f8a03274d75 Added mention of STONE layer to the LICENSE
Teemu Piippo <crimsondusk64@gmail.com>
parents: 74
diff changeset
34
5f8a03274d75 Added mention of STONE layer to the LICENSE
Teemu Piippo <crimsondusk64@gmail.com>
parents: 74
diff changeset
35 Copyright 2009 Timothy Landers
5f8a03274d75 Added mention of STONE layer to the LICENSE
Teemu Piippo <crimsondusk64@gmail.com>
parents: 74
diff changeset
36 email: code.vortexcortex@gmail.com
5f8a03274d75 Added mention of STONE layer to the LICENSE
Teemu Piippo <crimsondusk64@gmail.com>
parents: 74
diff changeset
37
5f8a03274d75 Added mention of STONE layer to the LICENSE
Teemu Piippo <crimsondusk64@gmail.com>
parents: 74
diff changeset
38 Permission is hereby granted, free of charge, to any person obtaining a copy
5f8a03274d75 Added mention of STONE layer to the LICENSE
Teemu Piippo <crimsondusk64@gmail.com>
parents: 74
diff changeset
39 of this software and associated documentation files (the "Software"), to deal
5f8a03274d75 Added mention of STONE layer to the LICENSE
Teemu Piippo <crimsondusk64@gmail.com>
parents: 74
diff changeset
40 in the Software without restriction, including without limitation the rights
5f8a03274d75 Added mention of STONE layer to the LICENSE
Teemu Piippo <crimsondusk64@gmail.com>
parents: 74
diff changeset
41 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5f8a03274d75 Added mention of STONE layer to the LICENSE
Teemu Piippo <crimsondusk64@gmail.com>
parents: 74
diff changeset
42 copies of the Software, and to permit persons to whom the Software is
5f8a03274d75 Added mention of STONE layer to the LICENSE
Teemu Piippo <crimsondusk64@gmail.com>
parents: 74
diff changeset
43 furnished to do so, subject to the following conditions:
5f8a03274d75 Added mention of STONE layer to the LICENSE
Teemu Piippo <crimsondusk64@gmail.com>
parents: 74
diff changeset
44
5f8a03274d75 Added mention of STONE layer to the LICENSE
Teemu Piippo <crimsondusk64@gmail.com>
parents: 74
diff changeset
45 The above copyright notice and this permission notice shall be included in
5f8a03274d75 Added mention of STONE layer to the LICENSE
Teemu Piippo <crimsondusk64@gmail.com>
parents: 74
diff changeset
46 all copies or substantial portions of the Software.
5f8a03274d75 Added mention of STONE layer to the LICENSE
Teemu Piippo <crimsondusk64@gmail.com>
parents: 74
diff changeset
47
5f8a03274d75 Added mention of STONE layer to the LICENSE
Teemu Piippo <crimsondusk64@gmail.com>
parents: 74
diff changeset
48 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5f8a03274d75 Added mention of STONE layer to the LICENSE
Teemu Piippo <crimsondusk64@gmail.com>
parents: 74
diff changeset
49 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5f8a03274d75 Added mention of STONE layer to the LICENSE
Teemu Piippo <crimsondusk64@gmail.com>
parents: 74
diff changeset
50 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5f8a03274d75 Added mention of STONE layer to the LICENSE
Teemu Piippo <crimsondusk64@gmail.com>
parents: 74
diff changeset
51 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5f8a03274d75 Added mention of STONE layer to the LICENSE
Teemu Piippo <crimsondusk64@gmail.com>
parents: 74
diff changeset
52 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
5f8a03274d75 Added mention of STONE layer to the LICENSE
Teemu Piippo <crimsondusk64@gmail.com>
parents: 74
diff changeset
53 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
5f8a03274d75 Added mention of STONE layer to the LICENSE
Teemu Piippo <crimsondusk64@gmail.com>
parents: 74
diff changeset
54 THE SOFTWARE.

mercurial