ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/utils/cfhq2xa.C
(Generate patch)

Comparing deliantra/server/utils/cfhq2xa.C (file contents):
Revision 1.3 by root, Sun Jul 1 05:00:21 2007 UTC vs.
Revision 1.5 by root, Thu Nov 8 19:43:30 2007 UTC

1/* 1/*
2 * This file is part of Crossfire TRT, the Roguelike Realtime MORPG. 2 * This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 * 3 *
4 * Copyright (©) 2007 Marc Alexander Lehmann / Robin Redeker / the Crossfire TRT team 4 * Copyright (©) 2007 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 2003,2007 MaxSt <maxst@hiend3d.com> 5 * Copyright (©) 2003,2007 MaxSt <maxst@hiend3d.com>
6 * 6 *
7 * Crossfire TRT is free software: you can redistribute it and/or modify 7 * Deliantra is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by 8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or 9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version. 10 * (at your option) any later version.
11 * 11 *
12 * This program is distributed in the hope that it will be useful, 12 * This program is distributed in the hope that it will be useful,
15 * GNU General Public License for more details. 15 * GNU General Public License for more details.
16 * 16 *
17 * You should have received a copy of the GNU General Public License 17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 * 19 *
20 * The authors can be reached via e-mail to <crossfire@schmorp.de> 20 * The authors can be reached via e-mail to <support@deliantra.net>
21 */ 21 */
22 22
23// note: the original code was released under the LGPL version 2.1 23// note: the original code was released under the LGPL version 2.1
24 24
25#include <cstdio> 25#include <cstdio>
192{ 192{
193 int i, j, k; 193 int i, j, k;
194 int prevline, nextline; 194 int prevline, nextline;
195 pixel w[10]; 195 pixel w[10];
196 196
197 // +----+----+----+ 197 // +--+--+--+
198 // | | | |
199 // | w1 | w2 | w3 | 198 // |w1|w2|w3|
200 // +----+----+----+ 199 // +--+--+--+
201 // | | | |
202 // | w4 | w5 | w6 | 200 // |w4|w5|w6|
203 // +----+----+----+ 201 // +--+--+--+
204 // | | | |
205 // | w7 | w8 | w9 | 202 // |w7|w8|w9|
206 // +----+----+----+ 203 // +--+--+--+
207 204
208 for (j = 0; j < Yres; j++) 205 for (j = 0; j < Yres; j++)
209 { 206 {
210 if (j > 0) 207 if (j > 0)
211 prevline = -Xres * sizeof (pixel); 208 prevline = -Xres * sizeof (pixel);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines