b11d9e3ff9Fix tiny compilation problem with mingw-gcc 3.4.2, and standardized tabs
Yves Rizoud
2008-11-03 22:42:48 +00:00
8dd0113697Fixed the key release handling. Avoid to mess with global variables... or the shortcut keys will trigger the actions twice (both when pressed and released)
Adrien Destugues
2008-11-03 17:03:30 +00:00
2e163fb5afFixed drawing with the keyboard. Space key release wasn't taken into account. Now you can plot a single pixel.
Adrien Destugues
2008-11-03 15:59:18 +00:00
c5a3b7b3c8Text tool: now has a preview.
Yves Rizoud
2008-11-02 20:33:36 +00:00
3b4149be49Text: Fonts are scanned in fonts/ and Windows own directory
Yves Rizoud
2008-10-31 20:03:58 +00:00
bd23cc6f76Text with SFont, unfinished. Also merged in some Makefile tweaks by xeron
Yves Rizoud
2008-10-29 20:04:25 +00:00
a6ab2465fcFixed some warnings reported by gcc under linux.
Adrien Destugues
2008-10-29 15:51:42 +00:00
af9e862b5d- Enabled the support for text in macosx version albeit it doesn't seem to do anything yet beside displaying a dialog window (updated the xcode project accordingly by installing SDL_ttf with the application). .- Added a Backup() in Rectangle_Degrade_12_0() so the undo command should work.
Franck Charlet
2008-10-28 10:34:46 +00:00
72c42b92cefixed crash when drawing a vertical gradiation or a single-point (nonsense) gradiation.
Adrien Destugues
2008-10-28 09:59:58 +00:00
cc81845f7bwork in progress on Text menu
Yves Rizoud
2008-10-28 00:02:48 +00:00
3fb9a91c8fFixed a memory leak on each directory scan
Yves Rizoud
2008-10-27 18:35:41 +00:00
b49fde7015OS4, OSX: Centralized the part which determined which directory contains the program's files. Owners of these platforms, please check if I did it ok. It should crash spectacularly on program init or shutdown if I messed up.
Yves Rizoud
2008-10-27 18:27:05 +00:00
392f5f13d0(AmigaOS4) Volume list implemented, courtesy of xeron.
Yves Rizoud
2008-10-27 18:02:36 +00:00
d72897e93dSome more fixes for the gradiation rectangles. The position is now calculated in an int, you should not experience any problem with the circle limit. Also fixed the operation handling. The rectangle is now drawn properly when you finish sizing it. The vector line still leaves some artifact on screen, however...
Adrien Destugues
2008-10-27 09:02:33 +00:00
cf54d4a460Load/Save: "Select Drive" button. Allows a way for the AmigaOS4 version to display the list of drives / volume names. Peter, you can plug in Lire_liste_des_lecteurs(void) to enumerate the drives.
Yves Rizoud
2008-10-25 18:20:31 +00:00
aeda49b9bbStats screen: report if TTF is enabled
Yves Rizoud
2008-10-25 13:35:28 +00:00
f2b551a3daMakefile: version.o in right directory now, ziprelease now adds -nottf to archive names if TrueType support was disabled. Otherwise, the 435Kb DLLs are included in the win32 archive. The sample font is archived, too.
Yves Rizoud
2008-10-23 23:10:59 +00:00
45f1dfeb7bTEXT Tool, first work-in-progress commit. Truetype only, compile with "make NOTTF=1" if you don't want to bother with it. Only TTF is done, aliased (ok) and non-aliased (backgound color is currently stuck to color index 0) The Clear button doesn't update the window. Only one font (certified to be public domain). Preview not done. Font selector not done. SFont support not done. Limit 30 characters.
Yves Rizoud
2008-10-23 22:13:53 +00:00
468af075c3Fixed the vector calculation. You can now draw gradiation rectangles. However there is still some work needed :
Adrien Destugues
2008-10-23 06:59:11 +00:00
cef61562d0Some progress on the gradiation rectangles. I messed up the vector calculation somehow. Is someone good at maths ?
Adrien Destugues
2008-10-22 19:56:30 +00:00
08f0541f11x-swap and swap should be fixed (i forgot to refresh the main palette in such cases).
Franck Charlet
2008-10-22 03:16:39 +00:00
dc9e10c054Started work on the gradiation rectangle. The handling in the operation engine should work pretty well. I would like to do some changes, however (displaying the bottomright of the rectangle, and use XOR for the vector, for example) Now, i have to do the real thing, the gradiation calculation and drawing. But let's see that tomorrow...
Adrien Destugues
2008-10-21 19:57:25 +00:00
320eb547cdAdded support for 192:145 (1152*870) aspect ratio in screen sizes dialog (and revamped the column a bit).
Franck Charlet
2008-10-21 14:15:18 +00:00
221b7cae00ok, fixed line drawing. The error in previous commit was my fault, after all :)
Adrien Destugues
2008-10-21 13:56:28 +00:00
31c278813eTrying to get straight lines drawn with shift + click. Seems the value of the starting point gets cut to 8 bit somewhere but i can't see where that happens... and it works fine when drawing, but not in preview mode !
Adrien Destugues
2008-10-21 13:39:47 +00:00
c3182555b9I noticed modifying the logical palette only wasn't effective in fullscreen mode so i modified the palette functions to act a little bit differently: the physical palette is only refreshed globally after all locals colors are modified, that should hopefully fix the speed issue as it looks like there's also a vblank wait when the physical palette is modified (that's how it acts on mac).
Franck Charlet
2008-10-21 01:44:46 +00:00
2b232bbc48Improved the speed of the spread and swap commands in the palette window by only refreshing the logical palette instead of the physical one (at least it works on MacOSX, i don't know if it's any good on other versions)
Franck Charlet
2008-10-20 20:08:26 +00:00
e31b88ceedPalette sorting works
Adrien Destugues
2008-10-20 18:14:10 +00:00
fc41bbe89dImplemented palette sorting. There are problems as we're sortig with HSL color system and the rgb2hl function doesn't return s... we'll have to add that as we can't say if we're looking at red or grey (both have H=0). Also, there is a problem with the makefile under linux. The .dep is set for checking the .o in the win32 folder. It still works but recompiles everything at each change.
Adrien Destugues
2008-10-19 18:52:10 +00:00
4a3b324a52Compilation: .o files in a subdirectory of obj/
Yves Rizoud
2008-10-18 21:55:30 +00:00
20537fd58aFixed text alignment in the about screen
Adrien Destugues
2008-10-18 16:09:49 +00:00
568e4b7349Implemented the Additive and Substractive modes, missing from the DOS version
Yves Rizoud
2008-10-17 23:24:41 +00:00
8f7d11ef04Added back the confirmation message in "Copy Spare / Some colors" function. I shouldn't have removed it in r279, it happens because the spare page has unsaved changes and will be modified.
Yves Rizoud
2008-10-17 22:01:22 +00:00
a4bcfff7de(Windows) Fixed a harmless unixism : File separator /. It Worked, but may have caused programmer errors.
Yves Rizoud
2008-10-17 21:49:33 +00:00
b88187ea4cFixed a missing refresh when moving a window by 0.
Yves Rizoud
2008-10-17 21:38:14 +00:00
9a759615aeCleaned up some DOS leftovers.
Yves Rizoud
2008-10-17 21:30:38 +00:00
a223fcb9b6Made the welcome screen behave like a spash screen: Any click or keypress dismisses it.
Yves Rizoud
2008-10-17 19:35:02 +00:00
30aa716ba6"Copy Spare / Some colors" is no longer a guaranteed SEGFAULT (crash)
Yves Rizoud
2008-10-17 19:21:23 +00:00
a86ded68e4Fixed missing refreshes in the GUI: Load/Save, Stencil, Mask, Best match colors, and all scrollbar buttons.
Yves Rizoud
2008-10-17 19:09:22 +00:00
efb420f1f8Fixed a small issue in the xcode project file for non developpers macosx users who don't have the sdl & sdl_image installed on their computers.
Franck Charlet
2008-10-17 13:54:43 +00:00
a2d3374c9cThe SVN revision used to compile is now reported in the Statistics window. Needs testing on linux, including the cross-compilation. Pkm, see if the naming scheme suits you.
Yves Rizoud
2008-10-17 00:02:33 +00:00
0f74b81151Removed the shift + click right mouse button emulation as it looks like is already handled with the apple key.
Franck Charlet
2008-10-16 23:07:26 +00:00
a453821325Fixed the darn color remapping bug in Palette window, that still happened with zoomed menus (x2 x3)
Yves Rizoud
2008-10-16 22:02:42 +00:00
f4e81048abMacOSX: Fixed a bug in the filenames input and another one with the backspace key not being sent.
Franck Charlet
2008-10-16 21:55:29 +00:00
6a778031feHandling for these formats were broken due to endianness problems on PPC: pkm img bmp gif
Franck Charlet
2008-10-16 00:29:04 +00:00
c395578be8Provides an intermediate refresh mode. You can activate it in sdlscreen.c
Yves Rizoud
2008-10-15 23:33:25 +00:00
9770d70f2aRefactored the "#ifndef __macosx__" that were around every SDL_UpdateRect(). Redraw method is now defined once, in sdlscreen.c
Yves Rizoud
2008-10-15 22:52:00 +00:00
99b99322beAdded the missing objective C files for the macosx and fixed the changes you forgot in main.c etc.. Also added a way to handle the right mouse button when the shift key is pressed (for mice with only have 1 button :]).
Franck Charlet
2008-10-15 20:55:31 +00:00
8990c1b27eFixes missing refresh in Palette/X-Swap
Yves Rizoud
2008-10-15 19:42:04 +00:00
dac1e814ecFixes color mismatch under palette window when it's low and you alter a color used in the GUI and the menu bar is
Yves Rizoud
2008-10-15 19:34:45 +00:00
4117dace60You can now change zoom factor while in magnify mode.
Adrien Destugues
2008-10-15 19:03:13 +00:00
99d485210cSome speedup for macosx build
Adrien Destugues
2008-10-15 13:29:34 +00:00
9434f76dfdMore fixes of palette remapping. Todo: Button Swap needs a refresh, button Cancel requires a toolbar redraw.
Yves Rizoud
2008-10-15 00:04:15 +00:00
9fb162e748Fixes the missing color remapping of windows background (and status bar) when palette remapping occurs.
Yves Rizoud
2008-10-14 22:46:51 +00:00
584c4696c1Mac os X port. Compiles and runs slowly
Adrien Destugues
2008-10-14 20:42:05 +00:00
0794f573cbAdded all the debuggers and porters to the greetings
Adrien Destugues
2008-10-14 20:11:43 +00:00
7ca68f33d0Fixed many refresh problems in the Sieve menu, plus older logic bugs.
Yves Rizoud
2008-10-14 19:54:22 +00:00
ff9fc1633bAmigaOS 4 port from xeron.
Adrien Destugues
2008-10-14 19:45:39 +00:00
4a2bef2f6bRemoved useless SDL.h include in main.c (already included in global.h)
Adrien Destugues
2008-10-14 15:06:07 +00:00
403159f9a3Resolution in gfx2.ini is now default.
Yves Rizoud
2008-10-13 21:23:43 +00:00
47c1db98cefixed screen update in loadfile screen when opening an empty directory (or with little number of files)
Adrien Destugues
2008-10-13 20:03:21 +00:00
b4673bf9deFixed big ellipses
Adrien Destugues
2008-10-13 19:50:33 +00:00
0bbed15383Removed the useless "squares table" wich only worked for resolutions <= 1024 px.
Adrien Destugues
2008-10-13 19:38:58 +00:00
c4be0a319aUpdated the makefile for proper cross building
Adrien Destugues
2008-10-13 18:16:09 +00:00
96089af2aeContextual help in all menus. Done!
Yves Rizoud
2008-10-12 21:28:16 +00:00
74d0b87233Contextual help in Effects menu
Yves Rizoud
2008-10-12 19:09:29 +00:00
1af06aec53moved cfg folder to oldfiles dir
Adrien Destugues
2008-10-12 18:07:48 +00:00
8a1e44ed30Windows restore their background. Fixes/speeds-up some refreshes, and prepares for pop-up windows
Yves Rizoud
2008-10-12 17:32:46 +00:00
717a7f1fbbfixed line artifacts.
Adrien Destugues
2008-10-10 15:48:40 +00:00
83ef6ef4ac(linux) Fixed a sigsegv when drawing a color brush which is completely outside screen (The only way is to use the circle tool) SDL_UpdateRect was crashing because of receiving negative Width or Height. This was due to Calculer_dimensions_clipees() clipping width or height so much that they become negative.
Yves Rizoud
2008-10-10 00:33:22 +00:00
b0cd961188Fixed the statusbar update. Fixed the brushes ! finally !
Adrien Destugues
2008-10-09 19:29:34 +00:00
393ced7451Hopefully correct Mettre_Ecran_A_Jour for zoom. Still buggy in the colour brush, going on to check that
Adrien Destugues
2008-10-09 19:05:21 +00:00
fe249a3c7dSplash screen, About
Yves Rizoud
2008-10-09 00:30:44 +00:00
5fd1e42ea0Copyright notices in source files
Yves Rizoud
2008-10-08 19:40:47 +00:00
c8c037d00bFixed resolution menu behavior when less than 12 resolutions are available. gfx2.cfg : Reverted the default Shade (Blanks are needed to separate the gradients)
Yves Rizoud
2008-10-07 19:21:17 +00:00
c33dd599cdWe still need the cfg file in the releases
Adrien Destugues
2008-10-07 19:05:09 +00:00
93a4cd2db5The transparent cursor left some artefacts in the edge of the menu, this is now corrected. The screen is updated when drawing.
Adrien Destugues
2008-10-07 17:50:37 +00:00
6d47ee1952fixed a little screen update bug in cursor handling.
Adrien Destugues
2008-10-07 17:26:34 +00:00