From 84d1f79fdf02e0010e4b2d118458e8cd8ce0dd71 Mon Sep 17 00:00:00 2001 From: Krzysztof H Date: Fri, 9 Mar 2012 17:08:05 +0100 Subject: Added license info using a small program SrcHead. --- src/slider.cpp | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'src/slider.cpp') diff --git a/src/slider.cpp b/src/slider.cpp index 6fbda72..bacc527 100644 --- a/src/slider.cpp +++ b/src/slider.cpp @@ -1,4 +1,18 @@ -// slider.cpp +// * This file is part of the COLOBOT source code +// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch +// * +// * 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 3 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, see . #define STRICT #define D3D_OVERLOADS @@ -59,7 +73,7 @@ CSlider::~CSlider() } -// Crée un nouveau bouton. +// Cr�e un nouveau bouton. BOOL CSlider::Create(FPOINT pos, FPOINT dim, int icon, EventMsg eventMsg) { @@ -90,7 +104,7 @@ void CSlider::MoveAdjust() m_bHoriz = ( m_dim.x > m_dim.y ); if ( ( m_bHoriz && m_dim.x < m_dim.y*4.0f) || - (!m_bHoriz && m_dim.y < m_dim.x*4.0f) ) // slider très court ? + (!m_bHoriz && m_dim.y < m_dim.x*4.0f) ) // slider tr�s court ? { delete m_buttonLeft; m_buttonLeft = 0; @@ -231,7 +245,7 @@ BOOL CSlider::ClearState(int state) } -// Gestion d'un événement. +// Gestion d'un �v�nement. BOOL CSlider::EventProcess(const Event &event) { -- cgit v1.2.3-1-g7c22