Commit graph

172 commits

Author SHA1 Message Date
Albert Cahalan
011834c95f cast useless arg to void --> no warning about it 2004-11-23 18:41:34 +00:00
Albert Cahalan
e5dbc33b29 simplify strip_trailing_whitespace, now O(n) 2004-11-23 18:37:59 +00:00
William Kendrick
f7679aed1c Cast putenv const strings to non-const 'char *', to prevent warnings.
Cleaned up change log.
2004-11-23 10:08:37 +00:00
Albert Cahalan
898745b144 half of the signed/unsigned warnings 2004-11-23 01:58:56 +00:00
Albert Cahalan
dc6ae1a5b8 use const keyword --> fewer warnings 2004-11-23 01:28:44 +00:00
Albert Cahalan
7aa5b236a4 use static keyword --> fewer warnings and better optimization 2004-11-22 23:17:22 +00:00
William Kendrick
abe6a5637f Now using AUDIO_S16SYS, 15bpp graphics. Has room for 512 stamps loaded at once. 2004-11-22 01:47:04 +00:00
William Kendrick
3f976b6f2e Added Albanian translation. 2004-11-22 01:12:23 +00:00
William Kendrick
df94c7d071 BeOS updates. File deletion also deletes correct thumbnail and .dat file. 2004-11-22 00:18:12 +00:00
William Kendrick
abdf7a063b Made bind_textdomain_codeset() only called on GLIBC 2.2 or higher,
to compile on old GLIBC system (such as RedHat-6.2).
2004-10-24 21:25:17 +00:00
William Kendrick
bdc6d1eb4f Support for 1024x768, 1280x1024, 1400x1050 and 1600x1200 resolutions!
(Thanks, Shin-Ichi!)
2004-10-24 21:23:22 +00:00
William Kendrick
871f5add79 Added Galician support. 2004-10-24 02:46:04 +00:00
William Kendrick
3e8f9a7a90 Added 16x16 mouse pointer (cursor) shapes. (Useful for Mac OS X.) 2004-09-29 06:06:11 +00:00
John Popplewell
aec0dcc442 Fix for the Starter images having a black background in 800x600 mode.
Changed the special-case code so that it copies a surface with alpha
correctly. Removed stray SDL_SetAlpha() from the background special-case.
The Starters with bg and fg look a bit odd if you paint outside the
original 640x480 area.
2004-09-28 17:42:23 +00:00
William Kendrick
72d839e3be Fixed crash bug if undoing or redoing a mirror/flip when NOT usign a Starter. 2004-09-28 08:02:07 +00:00
John Popplewell
6e45d58cd3 Fix for missing icon on XP.
Moved the call to seticon() and the underlying SDL_WM_SetIcon() to
_before_ the first call of SDL_SetVideoMode() like it says in the docs.

Fix for loss of icon transparency on win32.
Discovered that using a NULL mask in the call to SDL_WM_SetIcon() restored
the icon transparency.
2004-09-26 01:55:04 +00:00
Karl Ove Hufthammer
2ecd447621 Changed skyline starter to JPEG. 2004-09-24 20:17:25 +00:00
William Kendrick
478a17cfd9 'Open' dialog tries to open 'Starter' backgrounds, if they exist
(JPEG first, then PNG... if neither, then it loads the 'overlay' PNG,
which may be the only part of the Starter...)
2004-09-23 08:28:46 +00:00
William Kendrick
fabc9c171c Got starter background centered properly in 800x600 mode.
(Foreground not working.)
2004-09-22 07:02:41 +00:00
William Kendrick
95a0c69c56 Mirror and flip of image is kept track of, so undo/redo also affects starter. 2004-09-22 05:34:35 +00:00
William Kendrick
01111df2d3 Fixed bug where starter background wouldn't get flipped. (y, not x! d'oh!) 2004-09-22 05:11:58 +00:00
William Kendrick
9eecf5ab4e Trying to finish up starter mirror/flip. Background flip-on-load broken!
(Also, need to worry about keeping track of flips and mirroring for Undo/Redo!)
2004-09-20 06:02:57 +00:00
William Kendrick
9c450c12f2 Got it to properly pay attention to image's starter's orientation when loading. 2004-09-20 05:49:10 +00:00
William Kendrick
deb87428b3 Got starter mirror and flip working when Magic tools used. 2004-09-20 05:35:24 +00:00
William Kendrick
1d6406762c Starters get mirrored and flipped when those Magic tools are used. (BROKEN!)
Starter's mirror and flip state are stored, so we know to mirror/flip the
original when loading a saved image based on a starter. (UNTESTED)
Starters centered in the image, if they're smaller than canvas
(e.g., you're running in 800x600 mode) (BROKEN!)
Starter backgrounds can be JPEGs, as well as PNGs. (UNTESTED)
2004-09-20 03:15:12 +00:00
John Popplewell
c6f0c17daa Fix the other occurrence of the path to the starters files - sigh. 2004-09-18 20:06:38 +00:00
John Popplewell
e31a815459 Fix for bug in SDL_ttf-2.0.6. A call to TTF_Open() with the filename of
a font that doesn't exists segfaults. See the SDL list for details.
Doesn't affect the win32 build because the bug is fixed in the DLL I ship.

Added try_alternate_font() which mangles the lang_prefixes in an attempt
to find a suitable custom font. e.g. 'zh_tw'->'zh'.
2004-09-18 03:00:07 +00:00
John Popplewell
2a9f5553a4 Fix for win32 current_language(). Environment variable in 'langstr' parsing
code changed from LANG->LANGUAGE but not code in current_language().
2004-09-18 01:02:44 +00:00
John Popplewell
d0edcec0a7 Make win32 version use 'icon32x32.png' as SDL window icon.
Fix 'starter' images directory for win32.
2004-09-17 13:39:35 +00:00
William Kendrick
732e00b189 Made eraser outline icons in Selector 2px thick instead of 1px. 2004-09-15 19:40:47 +00:00
William Kendrick
3a254a81e0 'Starters' get green button backgrounds in 'Open' dialog.
Added mention of 'Starters' to readme (still needs work).
2004-09-15 07:29:08 +00:00
William Kendrick
b53c977e84 Starters weren't getting loaded if last-saved image was based on starters.
(i.e., current_id's file would be loaded, but not its starters...)
2004-09-15 06:52:08 +00:00
William Kendrick
adc9c0481f Starter foreground remains above painting. Background appears when eraser
is used.  Woo!  Almost done!
2004-09-15 06:11:19 +00:00
William Kendrick
44732279ae Disabled hq4x stuff by default... 2004-09-15 05:44:47 +00:00
William Kendrick
0910a33c73 Added missing wctype.h include 2004-09-14 07:57:01 +00:00
William Kendrick
197b401549 Hindi was missing in docs! Attempting wide-string uppercasing. 2004-09-14 07:42:38 +00:00
William Kendrick
00c5d44b96 Added lockfile feature, to prevent multiple launches within 30 seconds
(due to over-clicking, for example).
2004-09-14 06:39:51 +00:00
William Kendrick
1d1a6ecfba More work on 'starters' support. 2004-09-04 11:26:01 +00:00
William Kendrick
ff7317cbfb Corrected multi-location opening function. 'Starters' can be opened,
but no attempt to delete can be made. ("Erase" button deactivated.)
Saving after loading a starter creates a new work.
2004-09-04 10:42:32 +00:00
Karl Ove Hufthammer
85aa989fee Ripped out remaining I18N/UTF-8 stuff that a) didn't work, or b) didn't make any sense (or both!).
Writing non-ASCII characters using the text tool doesn't work. (But it didn't before this update either.)
2004-08-23 19:09:39 +00:00
William Kendrick
9efcbf9db0 Added Bulgarian. 2004-08-19 17:54:36 +00:00
William Kendrick
c4de3f6966 Begin adding Klingon translation. 2004-08-17 07:44:24 +00:00
Karl Ove Hufthammer
5c6adaff9b '@euro' is deprecated, so I changed all locale codes to use 'UTF-8'. 2004-07-21 17:33:27 +00:00
Karl Ove Hufthammer
ee1ea314d2 Fixed translation bug. 2004-07-16 19:52:30 +00:00
Karl Ove Hufthammer
1adef6f02c Changed locale code for Portuguese (Portugal) from 'pt' to 'pt_pt'. 2004-07-12 19:09:29 +00:00
Karl Ove Hufthammer
feef96a197 Fixed a translation-related bug. 2004-07-12 12:51:48 +00:00
Karl Ove Hufthammer
2a9a7d02ce * Brutally ripped out everything that had to do with non-UTF-8 based rendering of strings. Needs testing!
(All stamp descriptions are now in UTF-8. And the UTF-16 functions (unfortunately named '...UNICODE') weren't even being used!)

* Renamed some functions so that they now make sense.

* Removed HTML unescaping code.

* Removed unnecessary language selection code.

* Various other cleanups and fixes.
2004-07-10 20:14:11 +00:00
Karl Ove Hufthammer
5a008250ed Treat all stamp descriptions as UTF-8, since they are. 2004-07-07 17:19:45 +00:00
Karl Ove Hufthammer
b39da65dcb Fixed pixeldirt when selecting right-most paint bucket.
Also moved the paint bucket down a little, which looks better.
2004-07-06 14:45:30 +00:00
Karl Ove Hufthammer
7373e6c8d7 Fixed line-spacing issues with FreeSans font by moving the descriptions up a few pixels. 2004-06-24 10:01:41 +00:00