Thomas Bernard
9c2cd926f1
Tag_color_gradient_range() to simplify code
2018-12-15 17:02:09 +01:00
Thomas Bernard
7e3e39a753
enum FSOBJECT_TYPE for object type : File / Directory / Drive
2018-12-09 00:09:01 +01:00
Thomas Bernard
f655d7f7c9
show help for "8 BIT" in FX menu when mouse is over the button
...
+ underscore the F of feedback
2018-12-08 18:12:36 +01:00
Thomas Bernard
8a3860611d
Left clic on 8bit button now opens the menu if no mode has previously been selected
2018-11-26 10:50:52 +01:00
Thomas Bernard
5ae73fb7c8
add A and L keyboard shortcut in the initial message window
2018-11-20 13:48:47 +01:00
Thomas Bernard
34b89a2768
const T_Setting * args when possible
2018-11-16 18:40:37 +01:00
Thomas Bernard
6189b43917
Add a gfx2.ini parameter to set the gamma for Thomson MO/TO palettes
2018-11-15 23:39:00 +01:00
Jordan Christiansen
c40a2ad470
Prevent "Restore lasso brush" from clearing the brush
...
Fixes Trac bug #16
2018-11-09 18:14:00 +01:00
Thomas Bernard
50f3b99106
store unicode filename for brush
2018-11-09 12:50:45 +01:00
Thomas Bernard
5ac8811dbe
add missing break statement (see commit eba26aaa )
...
eba26aaa96
2018-11-06 18:05:08 +01:00
Thomas Bernard
12050cd068
update Find_file_in_fileselector() to return -1 when not found
2018-09-15 11:11:48 +02:00
Thomas Bernard
8dfd6d6c97
Handle PIXEL_TALL3 mode in file formats (GIF)
2018-07-12 11:54:12 +02:00
Thomas Bernard
4d86b8a0c1
change all references to SDLK_xxxxx to KEY_xxxx
...
+ some fixes
2018-07-02 11:38:51 +02:00
Thomas Bernard
77005eb780
use screen.h instead of sdlscreen.h, etc.
...
Create grafx2-win32 MSVC++ project
create keycode.h
various fixes
2018-07-02 11:38:51 +02:00
Thomas Bernard
5c761ace2c
Use KEY_NONE for buttons without key shortcuts
...
SDLK_LAST was used, but it is SDL 1.x specific
2018-07-02 11:38:51 +02:00
Thomas Bernard
fb51c1bb1c
SDL_GetTicks() => GFX2_GetTicks()
...
Signed-off-by: Thomas Bernard <miniupnp@free.fr>
2018-07-02 11:38:51 +02:00
Thomas Bernard
72fea0290f
isolate dependencies to SDL
...
Do not access directly the SDL_Surface Screen_pixels
use new functions Get_Screen_pixel_ptr() Set_Screen_pixel(),
Get_Screen_pixel()
And SetPalette()
Signed-off-by: Thomas Bernard <miniupnp@free.fr>
2018-07-02 11:38:51 +02:00
Thomas Bernard
92facef46d
Convert comments to UTF-8
...
most were encoded in Latin1 / CP1252
but a few lines in op_c.c were using IBM437/850 !
2018-06-26 11:37:19 +02:00
Thomas Bernard
6731a57999
escape non ascii chars to HEX \xNN in C source (not in comments)
...
add "" where needed.
also fix extra space at end of lines (only in modified files)
2018-06-26 10:49:33 +02:00
Nic Soudée
044a042e38
Various window shortcut keys
...
* Settings window: "r" for Reload, "a" for Auto-Save, "s" for Save.
* Screen size: "h" to set height
* Spray menu: "s" for Size, "d" for Delay, "m" for Mono-Flow, "i" for Init
* Text Menu: "t" to enter text, "s" to enter size, show underscore for AA, Bold, Italic
* Palette window: "w" for Swap, "t" for Histo, fix "i" for Flip, show underscore for Merge, Used
* Transform menu: replace X and Y labels with W and H, and make them also shortcuts. I have renamed these
labels so that it does not conflict with the existing Mirror "X" and "Y" buttons.
2018-06-24 19:55:18 -04:00
Nic Soudée
a01e7eea69
Implement shortcut/underscore for input button
2018-06-24 15:25:26 +00:00
Philip Linde
b91cfe4ed3
Call Button_Quit and Button_Page with correct enum
...
These functions are called explicitly in a few places and need to be
handed the corresponding enum value to correctly get the button value.
Since they were previously called with -1, they would cause segfaults.
These seemed to happen when restoring backups or loading images to both
pages.
2018-06-03 20:03:34 +00:00
Thomas Bernard
c8bc04e413
Fix filebackup when saving.
...
It was the wrong filename that was backuped when using "Save As".
Now it is the filename selected.
2018-04-06 16:45:35 +02:00
Thomas Bernard
187c7d53e3
Fix a few warnings (from MS Visual Studio 2015)
2018-04-06 16:45:35 +02:00
Thomas Bernard
a29168f7ce
Splash screen : 2017->2018
2018-03-20 21:58:22 +01:00
Thomas Bernard
30f23b93ef
Massive change of button callback function prototypes
2018-03-10 00:46:11 +01:00
Thomas Bernard
f2d579695c
implements selection of circle/ellipse mode with right button
...
see http://pulkomandy.tk/projects/GrafX2/ticket/54
2018-03-10 00:46:11 +01:00
Thomas Bernard
60beebc9ac
fixes for MSVC non-standard C library
...
strcase => _stricmp
strncase => _strnicmp
strdup => _strdup
snprintf => _snprintf
a compliant snprintf() is supposed to be available
in MS Visual Studio 2015 and later
2018-02-20 15:45:45 +01:00
Thomas Bernard
ad219c84d2
Make saving of unicode named files work under Win32
...
the "Long" name is converted to short (DOS 8.3) name
as soon as possible.
2018-02-20 15:45:45 +01:00
Thomas Bernard
6f48d7fefe
Add MSVC 2010 project file and a make the project compile
2018-02-20 15:45:45 +01:00
Thomas Bernard
9fb6d650b5
pass unicode name when clicking Load or Save button
2018-02-20 15:44:39 +01:00
Thomas Bernard
4a2754321f
update For_each_file() to pass both full path and file name only to the callback
...
All callbacks need to extract the filename anyway, so it simplify the code
2018-02-20 15:44:39 +01:00
Thomas Bernard
a4593da4d4
display unicode filename in menu
2018-02-20 15:44:39 +01:00
Thomas Bernard
545308265b
Add the ability to print unicode characters in addition to "Latin1" ones
2018-02-20 15:44:39 +01:00
Thomas Bernard
4ffa389a90
Update File selector to load/save palettes
...
Also "constify" the format array
2018-01-25 22:55:27 +01:00
Thomas Bernard
abe7a8cb59
simplification of in Load_picture()
2018-01-25 22:55:27 +01:00
Thomas Bernard
76f3860712
fix after rebase
2018-01-25 22:55:27 +01:00
Thomas Bernard
ccf3e6a77f
Change Load_picture() prototype to allow loading of palette
...
the change matches what is done with Save_picture()
2018-01-25 22:55:27 +01:00
Thomas Bernard
5ab93eb7fd
Great simplification of Main/Spare page flipping
2018-01-22 21:47:44 +01:00
Thomas Bernard
353b494617
move tilemap data to T_Document.
...
Also merge Disable_main_tilemap + Disable_spare_tilemap
=> Disable_tilemap()
2018-01-22 20:59:49 +01:00
Thomas Bernard
92620bb4ba
merge Upload_infos_page_main() / Upload_infos_page_spare() => Upload_infos_page()
2018-01-22 20:34:29 +01:00
Thomas Bernard
a53d6da6ea
Add visible_image and backups to the T_Document structure
2018-01-22 16:16:39 +01:00
Thomas Bernard
8ae651c75f
put common fields for Main and Spare page in a T_Document structure
2018-01-22 14:46:44 +01:00
Thomas Bernard
2928a16e41
Also save visible layers for spare page
...
see http://pulkomandy.tk/projects/GrafX2/ticket/25#comment:3
2018-01-03 05:13:51 +01:00
Adrien Destugues
f2b04e08d0
Constraint modes: Thomson, ZX
2017-06-23 22:20:08 +02:00
Adrien Destugues
aef77744e1
EGX mode for CPC
...
In this custom mode, odd lines use MODE 0 (wide pixels, 16 colors), and
even lines use MODE 1 (square pixels, 4 colors).
- Add a settings window to the 8-bit effect where you can chose what you
want to draw
- Add the customizations required to make it work in graph.c
- Tweak some other places so it is easier to add other modes later on.
- Groundwork for some more modes: EGX2, ZX spectrum, Game Boy color.
2017-05-06 22:22:52 +02:00
Adrien Destugues
a8c7cdff15
Update copyright year in headers.
2017-05-01 20:41:46 +02:00
Adrien Destugues
7be396a9cf
Splash screen: fix homepage and copyright
...
* 10 years since I started porting GrafX2 to SDL!
* 20 years since Sunset Design wrote the first lines of code!
* To celebrate this, I'm finally setting up a real website!
2017-05-01 13:57:51 +02:00
Adrien Destugues
8808625851
Add a "tall 3" drawing mode.
...
Pixels with 3:4 aspect ratio. Why not?
Contributed by Nic Soudée (zoner/xylem). Thanks!
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2166 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2016-10-15 18:57:14 +00:00
Yves Rizoud
54b4269103
Effects screen : remove underlines on 'X' buttons (Underline is supposed to be used on letter whose key acticvates the button)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2123 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-06-28 15:44:12 +00:00