1174 Commits

Author SHA1 Message Date
Yves Rizoud
68dbb7ad74 Forgot the skins in previous commit.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1560 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-08-06 22:45:12 +00:00
Yves Rizoud
c9a917aa85 Fix some compilation warnings (mix code and declarations, breaks on gcc2). Fileselector: Fix the names of drives, which was one character too long, overwriting the scrollbar. Reworked the drive icons for black background (all skins)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1559 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-08-06 22:37:39 +00:00
Adrien Destugues
e0d21e2a89 * Relive the drive icons in the file selector.
They are drawn in the filelist so likely they shoud have a black background in the skins.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1558 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-08-06 18:12:49 +00:00
Adrien Destugues
42f401b061 * proof of concept (untesterd) for tiles
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1557 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-08-06 16:37:41 +00:00
Adrien Destugues
5ee0b4943f * Use SDL_WaitEvent instead of SDL_PollEvent.
* To avoid the program getting 'locked' when there is no user input (sliders, colorspray), we use a timer that queues events to make grafX2 act (and refresh the screen)

TODO :
 * To reduce cpu usage when idle even more, start the timer only when it's needed (colorspray is drawing, or a scrollbar is scrolling)
 * For now everyone uses the same timer, so the same delay. This means there is no fast-scroll and slow-scroll for sliders. Starting the timer with a different speed in each case would solve that
 * The event handling for sliders will currently react to any mouse event. Thismeans the slider will move faster if you slightly move the mouse while keeping in the button. Not what wewant, so weshoud all a timer_expired global and the slider should wait for that (and reset it when acknowledged).

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1556 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-08-06 15:40:01 +00:00
Adrien Destugues
bce1c9d7ee * Fix using fullscreen mode with a tablet.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1553 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-08-06 13:38:49 +00:00
Adrien Destugues
9070ca9b5b * Smarter function to guess the menu colors. It is now done by selecting colors from their luminance and saturation. Thisshould give better results on low-color pictures where there is only one grey tone. It was really annoying to work on amstrad CPC pictures.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1550 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-08-05 20:03:28 +00:00
Adrien Destugues
67ceccd2a3 * Add a work in progress function to handle native fileselectors. Not plugged to anything yet.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1549 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-08-05 17:53:27 +00:00
Adrien Destugues
aaef37bd40 * Add support for drag and drop of a picture into grafx2 windows
WARNING : it will not ask to save changes before. I believe it should work like the fileselector but could not find where to plug it there...

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1548 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-08-02 10:21:59 +00:00
Yves Rizoud
378555d943 Palette: Fix bad placement of color count after recent change. Removed the 'Preset' function entierely (default pa
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1545 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-08-01 19:41:52 +00:00
Yves Rizoud
8df74d8e6b Palette screen: Separated the 'Used' buttons in two, one that shows the marks and the other that shows histogram. MAde 'Sort' a dropdown button.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1534 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-07-29 19:18:12 +00:00
Adrien Destugues
17981ab03b * Fix build when lua disabled.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1533 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-07-27 10:01:08 +00:00
Yves Rizoud
061eba29de Lua scripts can have individual keyboard shortcuts (Issue 344)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1532 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-07-24 16:51:56 +00:00
Yves Rizoud
a2eade7203 Fix menu colors after a Lua script modifies the palette (Bug introduced in r1527)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1531 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-07-22 17:30:41 +00:00
Yves Rizoud
d5ecba7b6c Palette sort (on brightness) now uses a better formula, provided by DawnBringer. Text tool no longer crashes with some fonts. Added support for bitmap fonts from 'Bitmap Font Writer', such as those from http://www.zone38.net/font/bmpfont.html or http://www.matriaxweb.com/others.htm or http://www.genvid.com/moonstruck/downloads/fonts.html
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1530 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-07-14 19:33:53 +00:00
Yves Rizoud
e6ced5f6a0 New direct shortcuts for resizing brush (Issue 319)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1528 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-07-08 23:42:48 +00:00
Yves Rizoud
272cc59395 Added a key shortcut to open Brush factory (Lua scripts), and another one to repeat the last used Lua script. Updated helpfile. At the moment no key is affected by default, so if DawnBringer has a preference...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1527 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-07-06 21:48:38 +00:00
Yves Rizoud
d459f3f824 Palette: Tags on used colors (click 'Used' button)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1526 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-29 23:29:17 +00:00
Yves Rizoud
60d253d21f Palette: Fix badly positioned color count after Reduce
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1525 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-29 17:59:59 +00:00
Yves Rizoud
4f71dc4bba Update to the Aurora skin by DawnBringer
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1524 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-26 10:52:14 +00:00
Yves Rizoud
ce6aa4cad6 Palette: Can now input color by typing RGB value in hex (Issue 299)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1523 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-24 23:56:06 +00:00
Yves Rizoud
7a46da32d5 Support for hexa text input (internal)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1522 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-24 19:31:26 +00:00
Yves Rizoud
d5a772f5ae Changed layout of the palette screen, in preparation for issue 299: direct input of #rrggbb colors. Fixed the position of slider gradations, that weren't at 1/4, 1/2 and 3/4. Now the Reduce button works with either mouse button.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1521 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-23 22:27:22 +00:00
Yves Rizoud
1a76338e3b Fix issue 360: Many (ancient) bugs in GIF Loading: Warped palette when reading a GIF with sorted global palette, or an interlaced GIF with a local palette (in both cases, data ordered RGB RGB RGB is read RRR GGG BBB), or any GIF with a local palette (first byte of palette was chopped off, shifting everything by 1 byte).
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1520 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-22 21:29:45 +00:00
Yves Rizoud
d4d1975322 Palette: contextual menu on RMB for Copy/Paste
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1519 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-19 19:50:05 +00:00
Yves Rizoud
8160a8ab90 Implemented basic Cut-and-paste in Palette: Ctrl-C / Ctrl-V. It doesn't use the clipboard, but you can copy in one page and paste in another.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1518 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-19 19:11:37 +00:00
Yves Rizoud
93c711205c Fix a missing refresh on buttons display when the main tool bar is hidden.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1517 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-19 13:47:02 +00:00
Yves Rizoud
ca1dc98d19 Fix the keyboard 'click emulation' that wasn't working ...since v2.1 (included). Thanks to spratek for report.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1516 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-18 14:52:41 +00:00
Yves Rizoud
80e2678306 Removed debug data from SDL_image.dll and libpng14-14.dll (GNU strip)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1515 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-17 21:42:30 +00:00
Yves Rizoud
9b3ce1cc8a Fix makefile for new version of libpng
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1514 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-17 21:38:24 +00:00
Yves Rizoud
06f165cec8 Re-built SDL_image 1.2.10 with the right dependency on libpng14-14.dll
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1513 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-17 20:53:41 +00:00
Yves Rizoud
95665a99df New: Alpha drawing mode, in 'Translucency'. Drawing AA Text automatically activates it. Fixed a problem in non-AA text that made it pick wrong colors if the current skin wasn't using white and black.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1512 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-17 18:06:09 +00:00
Yves Rizoud
ab657b018e Fix issue 356: Crash when using font size > 99
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1511 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-15 19:34:08 +00:00
Yves Rizoud
ddc0c3448d Support for loading 1bpp GIF. At last!
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1508 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-15 19:02:43 +00:00
Yves Rizoud
b643695786 Fix issue 357: Program hangs when loading GIF images with unknown Application Extension Blocks
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1507 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-15 16:52:59 +00:00
Yves Rizoud
2441c5cfd7 Lua: Fixed the inputboex's radio buttons that didn't act as radio since 2 April. Classic skin is now resaved as actual png.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1506 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-15 14:46:59 +00:00
Adrien Destugues
ca18967d11 Sorry !
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1505 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-15 09:02:17 +00:00
Yves Rizoud
85e4ea9a79 Fix compatibility warnings of libpng v1.4. Hopefully maintained compatibility with older versions... please report if problems.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1504 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-14 23:01:57 +00:00
Adrien Destugues
0ab3678768 Update SDL_image to 1.2.10 (linked against the new libpng).
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1503 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-14 17:37:04 +00:00
Adrien Destugues
83753d9d79 * Use libpng1.4 on windows (the "1.3" version doesn't even exist, where did we got this file ?)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1502 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-14 17:31:54 +00:00
Adrien Destugues
899a7c0cc1 We have a new bugfinder.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1501 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-14 17:07:07 +00:00
Adrien Destugues
a8cf59b531 Fix issue 355.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1500 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-14 17:03:41 +00:00
Yves Rizoud
8c5e4fa730 Refresh menu correctly after loading skin: Restore multi-state buttons, which buttons are highlighted, and current paintbrush in top left icon.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1499 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-07 19:31:31 +00:00
Yves Rizoud
575d9e3be5 Skins screen now immediately load the screen from disk when you enter it. When editing skin from within Grafx2, this means you can immediately press enter or click OK to update and see change.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1498 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-07 19:17:26 +00:00
Yves Rizoud
038d1bc0f6 Fixes missing icon updates: On tool toggle (line,freehand,curve), On split buttons (ellipses, polygons), Palette scroll arrows (vertical or horizontal). Only missing: on skin change
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1497 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-07 18:47:08 +00:00
Yves Rizoud
14557f8f02 Fixed the display of brush in the top left button
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1496 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-06 23:08:49 +00:00
Yves Rizoud
9456b06143 Changed skin format to allow skinmakers to provide 'selected' versions of buttons. Still slightly buggy
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1495 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-06-06 19:29:28 +00:00
Yves Rizoud
e5edfda5cc Skins with flat buttons (Issue 352). Sample skins: Clax2, Clax3
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1494 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-05-30 17:59:32 +00:00
Yves Rizoud
eec8610817 Fix issue 351: Ugly status bar icon on Windows
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1493 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-05-30 15:35:33 +00:00
Yves Rizoud
3446c1084b Fixed: Using F1 in Settings screen didn't open the right Help page for each group of settings.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1492 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-05-29 15:33:51 +00:00