Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge pull request #1183 from MeridianOXC/normalize-line-endings
Normalize line endings
- Loading branch information
Showing
with
38,162 additions
and 38,147 deletions.
- +8 −8 .astylerc
- +15 −0 .gitattributes
- +38 −38 .travis.yml
- +414 −414 bin/common/Language/en-GB.yml
- +414 −414 bin/common/Language/en-US.yml
- +57 −57 bin/common/Shaders/heavybloom.OpenGL.shader
- +57 −57 bin/common/Shaders/simplebloom.OpenGL.shader
- +441 −441 bin/common/SoldierName/Czech.nam
- +1,082 −1,082 bin/standard/xcom1/Language/en-GB.yml
- +1,082 −1,082 bin/standard/xcom1/Language/en-US.yml
- +1,220 −1,220 bin/standard/xcom2/Language/en-GB.yml
- +1,220 −1,220 bin/standard/xcom2/Language/en-US.yml
- +959 −959 cmake/modules/NSIS.template.in
- +515 −515 src/Basescape/BasescapeState.cpp
- +138 −138 src/Basescape/BuildFacilitiesState.cpp
- +63 −63 src/Basescape/BuildFacilitiesState.h
- +615 −615 src/Basescape/ManufactureInfoState.cpp
- +124 −124 src/Basescape/ManufactureInfoState.h
- +213 −213 src/Basescape/ManufactureState.cpp
- +680 −680 src/Basescape/PurchaseState.cpp
- +210 −210 src/Basescape/SoldierDiaryMissionState.cpp
- +62 −62 src/Basescape/SoldierDiaryMissionState.h
- +297 −297 src/Basescape/SoldierDiaryOverviewState.cpp
- +77 −77 src/Basescape/SoldierDiaryOverviewState.h
- +482 −482 src/Basescape/SoldierDiaryPerformanceState.cpp
- +92 −92 src/Basescape/SoldierDiaryPerformanceState.h
- +3,000 −3,000 src/Battlescape/BattlescapeGenerator.cpp
- +188 −188 src/Battlescape/CommendationLateState.cpp
- +50 −50 src/Battlescape/CommendationLateState.h
- +179 −179 src/Battlescape/CommendationState.cpp
- +50 −50 src/Battlescape/CommendationState.h
- +991 −991 src/Battlescape/InventoryState.cpp
- +114 −114 src/Battlescape/PromotionsState.cpp
- +49 −49 src/Battlescape/PromotionsState.h
- +3,108 −3,108 src/Battlescape/TileEngine.cpp
- +263 −263 src/Engine/Font.cpp
- +122 −122 src/Engine/GraphSubset.h
- +1,195 −1,195 src/Engine/Options.cpp
- +151 −151 src/Engine/ShaderDraw.h
- +655 −655 src/Engine/ShaderDrawHelper.h
- +162 −162 src/Engine/ShaderMove.h
- +173 −173 src/Engine/ShaderRepeat.h
- +1,051 −1,051 src/Engine/Surface.cpp
- +135 −135 src/Geoscape/Cord.h
- +2,731 −2,731 src/Geoscape/GeoscapeState.cpp
- +1,167 −1,167 src/Geoscape/GraphsState.cpp
- +676 −676 src/Menu/NewBattleState.cpp
- +267 −267 src/Menu/OptionsAudioState.cpp
- +65 −65 src/Menu/OptionsAudioState.h
- +148 −148 src/Menu/SetWindowedRootState.cpp
- +56 −56 src/Menu/SetWindowedRootState.h
- +3,532 −3,532 src/Mod/Mod.cpp
- +406 −406 src/Mod/Mod.h
- +251 −251 src/Mod/RuleGlobe.cpp
- +296 −296 src/Mod/Unit.cpp
- +168 −168 src/Mod/Unit.h
- +26 −26 src/OpenXcom.2010.sln
- +882 −882 src/OpenXcom.2010.vcxproj
- +22 −22 src/OpenXcom.2010.vcxproj.user
- +111 −111 src/OpenXcom.rc
- +3,290 −3,290 src/Savegame/BattleUnit.cpp
- +252 −252 src/Savegame/Production.cpp
- +1,251 −1,251 src/Savegame/SaveConverter.cpp
- +338 −338 src/Savegame/Transfer.cpp
- +16 −16 src/resource.h
@@ -1,9 +1,9 @@ | ||
style=allman | ||
indent=tab | ||
pad-oper | ||
pad-header | ||
unpad-paren | ||
fill-empty-lines | ||
add-brackets | ||
align-pointer=name | ||
style=allman | ||
indent=tab | ||
pad-oper | ||
pad-header | ||
unpad-paren | ||
fill-empty-lines | ||
add-brackets | ||
align-pointer=name | ||
mode=c |
@@ -0,0 +1,15 @@ | ||
# Set the default behavior, in case people don't have core.autocrlf set. | ||
* text=auto | ||
|
||
# Explicitly declare text files you want to always be normalized and converted | ||
# to native line endings on checkout. | ||
*.cpp text | ||
*.h text | ||
|
||
# Declare files that will always have CRLF line endings on checkout. | ||
*.sln text eol=crlf | ||
*.vcxproj* text eol=crlf | ||
|
||
# Denote all files that are truly binary and should not be modified. | ||
*.png binary | ||
*.gif binary |
@@ -1,38 +1,38 @@ | ||
language: cpp | ||
|
||
compiler: | ||
- clang | ||
- gcc | ||
|
||
os: | ||
- linux | ||
- osx | ||
|
||
sudo: false | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- cmake | ||
- libsdl1.2-dev | ||
- libsdl-mixer1.2-dev | ||
- libsdl-image1.2-dev | ||
- libsdl-gfx1.2-dev | ||
|
||
env: | ||
- BUILD_TYPE=Debug EXTRA_WARNING_FLAGS="-Wall -Wextra" | ||
- BUILD_TYPE=Release EXTRA_WARNING_FLAGS="-Wall -Wextra" | ||
|
||
before_install: | ||
- if [ $TRAVIS_OS_NAME == osx ]; then brew install yaml-cpp sdl sdl_gfx sdl_image sdl_mixer --with-flac --with-libmikmod --with-libvorbis --with-static-lib; fi | ||
- if [ $TRAVIS_OS_NAME == linux ]; then mkdir $TRAVIS_BUILD_DIR/dependency-prefix; fi | ||
- if [ $TRAVIS_OS_NAME == linux ]; then export PKG_CONFIG_PATH=$TRAVIS_BUILD_DIR/dependency-prefix/lib/pkgconfig; fi | ||
|
||
install: | ||
- if [ $TRAVIS_OS_NAME == linux ]; then mkdir -p $TRAVIS_BUILD_DIR/dependencies/; fi | ||
- if [ $TRAVIS_OS_NAME == linux ]; then pushd $TRAVIS_BUILD_DIR/dependencies/ && git clone https://github.com/jbeder/yaml-cpp.git && pushd yaml-cpp && git checkout yaml-cpp-0.6.1 && cmake -DCMAKE_INSTALL_PREFIX=$TRAVIS_BUILD_DIR/dependency-prefix -DCMAKE_BUILD_TYPE="${BUILD_TYPE}" -DYAML_CPP_BUILD_CONTRIB=NO -DYAML_CPP_BUILD_TOOLS=NO . && make -j2 && make install && popd && popd; fi | ||
|
||
before_script: | ||
- cmake . -DCMAKE_BUILD_TYPE="${BUILD_TYPE}" -DYAMLCPP_INCLUDE_DIR=$TRAVIS_BUILD_DIR/dependency-prefix/include -DCMAKE_CXX_FLAGS="${EXTRA_WARNING_FLAGS}" -DCMAKE_C_FLAGS="${EXTRA_WARNING_FLAGS}" | ||
|
||
script: make -j2 | ||
language: cpp | ||
|
||
compiler: | ||
- clang | ||
- gcc | ||
|
||
os: | ||
- linux | ||
- osx | ||
|
||
sudo: false | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- cmake | ||
- libsdl1.2-dev | ||
- libsdl-mixer1.2-dev | ||
- libsdl-image1.2-dev | ||
- libsdl-gfx1.2-dev | ||
|
||
env: | ||
- BUILD_TYPE=Debug EXTRA_WARNING_FLAGS="-Wall -Wextra" | ||
- BUILD_TYPE=Release EXTRA_WARNING_FLAGS="-Wall -Wextra" | ||
|
||
before_install: | ||
- if [ $TRAVIS_OS_NAME == osx ]; then brew install yaml-cpp sdl sdl_gfx sdl_image sdl_mixer --with-flac --with-libmikmod --with-libvorbis --with-static-lib; fi | ||
- if [ $TRAVIS_OS_NAME == linux ]; then mkdir $TRAVIS_BUILD_DIR/dependency-prefix; fi | ||
- if [ $TRAVIS_OS_NAME == linux ]; then export PKG_CONFIG_PATH=$TRAVIS_BUILD_DIR/dependency-prefix/lib/pkgconfig; fi | ||
|
||
install: | ||
- if [ $TRAVIS_OS_NAME == linux ]; then mkdir -p $TRAVIS_BUILD_DIR/dependencies/; fi | ||
- if [ $TRAVIS_OS_NAME == linux ]; then pushd $TRAVIS_BUILD_DIR/dependencies/ && git clone https://github.com/jbeder/yaml-cpp.git && pushd yaml-cpp && git checkout yaml-cpp-0.6.1 && cmake -DCMAKE_INSTALL_PREFIX=$TRAVIS_BUILD_DIR/dependency-prefix -DCMAKE_BUILD_TYPE="${BUILD_TYPE}" -DYAML_CPP_BUILD_CONTRIB=NO -DYAML_CPP_BUILD_TOOLS=NO . && make -j2 && make install && popd && popd; fi | ||
|
||
before_script: | ||
- cmake . -DCMAKE_BUILD_TYPE="${BUILD_TYPE}" -DYAMLCPP_INCLUDE_DIR=$TRAVIS_BUILD_DIR/dependency-prefix/include -DCMAKE_CXX_FLAGS="${EXTRA_WARNING_FLAGS}" -DCMAKE_C_FLAGS="${EXTRA_WARNING_FLAGS}" | ||
|
||
script: make -j2 |
@@ -1,57 +1,57 @@ | ||
#<!-- | ||
#WhateverMan's Bloom Shader | ||
#Copyright (c) 2010 WhateverMan | ||
# | ||
#This program is free software; you can redistribute it and/or | ||
#modify it under the terms of the GNU General Public License | ||
#as published by the Free Software Foundation; either version 2 | ||
#of the License, or (at your option) any later version. | ||
# | ||
#This program is distributed in the hope that it will be useful, | ||
#but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
#GNU General Public License for more details. | ||
# | ||
#You should have received a copy of the GNU General Public License | ||
#along with this program; if not, write to the Free Software | ||
#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
#--> | ||
language: "GLSL" | ||
vertex: | | ||
void main() | ||
{ | ||
gl_Position = ftransform(); | ||
gl_TexCoord[0] = gl_MultiTexCoord0; | ||
} | ||
linear: false | ||
fragment: | | ||
uniform sampler2D texture; | ||
#define glarebasesize 0.42 | ||
#define power 0.50 // 0.50 is good | ||
|
||
uniform vec2 rubyTextureSize; | ||
|
||
void main() | ||
{ | ||
vec4 sum = vec4(0.0); | ||
vec4 bum = vec4(0.0); | ||
vec2 texcoord = vec2(gl_TexCoord[0]); | ||
int j; | ||
int i; | ||
|
||
vec2 glaresize = vec2(glarebasesize) / rubyTextureSize; | ||
|
||
for(i = -2; i < 5; i++) | ||
{ | ||
for (j = -1; j < 1; j++) | ||
{ | ||
sum += texture2D(texture, texcoord + vec2(-i, j)*glaresize) * power; | ||
bum += texture2D(texture, texcoord + vec2(j, i)*glaresize) * power; | ||
} | ||
} | ||
|
||
if (texture2D(texture, texcoord).r < 2.0) | ||
{ | ||
gl_FragColor = sum*sum*sum*0.001+bum*bum*bum*0.0080 + texture2D(texture, texcoord); | ||
} | ||
} | ||
#<!-- | ||
#WhateverMan's Bloom Shader | ||
#Copyright (c) 2010 WhateverMan | ||
# | ||
#This program is free software; you can redistribute it and/or | ||
#modify it under the terms of the GNU General Public License | ||
#as published by the Free Software Foundation; either version 2 | ||
#of the License, or (at your option) any later version. | ||
# | ||
#This program is distributed in the hope that it will be useful, | ||
#but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
#GNU General Public License for more details. | ||
# | ||
#You should have received a copy of the GNU General Public License | ||
#along with this program; if not, write to the Free Software | ||
#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
#--> | ||
language: "GLSL" | ||
vertex: | | ||
void main() | ||
{ | ||
gl_Position = ftransform(); | ||
gl_TexCoord[0] = gl_MultiTexCoord0; | ||
} | ||
linear: false | ||
fragment: | | ||
uniform sampler2D texture; | ||
#define glarebasesize 0.42 | ||
#define power 0.50 // 0.50 is good | ||
|
||
uniform vec2 rubyTextureSize; | ||
|
||
void main() | ||
{ | ||
vec4 sum = vec4(0.0); | ||
vec4 bum = vec4(0.0); | ||
vec2 texcoord = vec2(gl_TexCoord[0]); | ||
int j; | ||
int i; | ||
|
||
vec2 glaresize = vec2(glarebasesize) / rubyTextureSize; | ||
|
||
for(i = -2; i < 5; i++) | ||
{ | ||
for (j = -1; j < 1; j++) | ||
{ | ||
sum += texture2D(texture, texcoord + vec2(-i, j)*glaresize) * power; | ||
bum += texture2D(texture, texcoord + vec2(j, i)*glaresize) * power; | ||
} | ||
} | ||
|
||
if (texture2D(texture, texcoord).r < 2.0) | ||
{ | ||
gl_FragColor = sum*sum*sum*0.001+bum*bum*bum*0.0080 + texture2D(texture, texcoord); | ||
} | ||
} |
@@ -1,57 +1,57 @@ | ||
#<!-- | ||
#WhateverMan's Bloom Shader | ||
#Copyright (c) 2010 WhateverMan | ||
# | ||
#This program is free software; you can redistribute it and/or | ||
#modify it under the terms of the GNU General Public License | ||
#as published by the Free Software Foundation; either version 2 | ||
#of the License, or (at your option) any later version. | ||
# | ||
#This program is distributed in the hope that it will be useful, | ||
#but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
#GNU General Public License for more details. | ||
# | ||
#You should have received a copy of the GNU General Public License | ||
#along with this program; if not, write to the Free Software | ||
#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
#--> | ||
language: "GLSL" | ||
vertex: | | ||
void main() | ||
{ | ||
gl_Position = ftransform(); | ||
gl_TexCoord[0] = gl_MultiTexCoord0; | ||
} | ||
linear: false | ||
fragment: | | ||
uniform sampler2D texture; | ||
#define glarebasesize 0.896 | ||
#define power 0.65 // 0.50 is good | ||
|
||
uniform vec2 rubyTextureSize; | ||
|
||
void main() | ||
{ | ||
vec4 sum = vec4(0.0); | ||
vec4 bum = vec4(0.0); | ||
vec2 texcoord = vec2(gl_TexCoord[0]); | ||
int j; | ||
int i; | ||
|
||
vec2 glaresize = vec2(glarebasesize) / rubyTextureSize; | ||
|
||
for(i = -2; i < 2; i++) | ||
{ | ||
for (j = -1; j < 1; j++) | ||
{ | ||
sum += texture2D(texture, texcoord + vec2(-i, j)*glaresize) * power; | ||
bum += texture2D(texture, texcoord + vec2(j, i)*glaresize) * power; | ||
} | ||
} | ||
|
||
if (texture2D(texture, texcoord).r < 2.0) | ||
{ | ||
gl_FragColor = sum*sum*sum*0.001+bum*bum*bum*0.0080 + texture2D(texture, texcoord); | ||
} | ||
} | ||
#<!-- | ||
#WhateverMan's Bloom Shader | ||
#Copyright (c) 2010 WhateverMan | ||
# | ||
#This program is free software; you can redistribute it and/or | ||
#modify it under the terms of the GNU General Public License | ||
#as published by the Free Software Foundation; either version 2 | ||
#of the License, or (at your option) any later version. | ||
# | ||
#This program is distributed in the hope that it will be useful, | ||
#but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
#GNU General Public License for more details. | ||
# | ||
#You should have received a copy of the GNU General Public License | ||
#along with this program; if not, write to the Free Software | ||
#Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
#--> | ||
language: "GLSL" | ||
vertex: | | ||
void main() | ||
{ | ||
gl_Position = ftransform(); | ||
gl_TexCoord[0] = gl_MultiTexCoord0; | ||
} | ||
linear: false | ||
fragment: | | ||
uniform sampler2D texture; | ||
#define glarebasesize 0.896 | ||
#define power 0.65 // 0.50 is good | ||
|
||
uniform vec2 rubyTextureSize; | ||
|
||
void main() | ||
{ | ||
vec4 sum = vec4(0.0); | ||
vec4 bum = vec4(0.0); | ||
vec2 texcoord = vec2(gl_TexCoord[0]); | ||
int j; | ||
int i; | ||
|
||
vec2 glaresize = vec2(glarebasesize) / rubyTextureSize; | ||
|
||
for(i = -2; i < 2; i++) | ||
{ | ||
for (j = -1; j < 1; j++) | ||
{ | ||
sum += texture2D(texture, texcoord + vec2(-i, j)*glaresize) * power; | ||
bum += texture2D(texture, texcoord + vec2(j, i)*glaresize) * power; | ||
} | ||
} | ||
|
||
if (texture2D(texture, texcoord).r < 2.0) | ||
{ | ||
gl_FragColor = sum*sum*sum*0.001+bum*bum*bum*0.0080 + texture2D(texture, texcoord); | ||
} | ||
} |
Oops, something went wrong.