86 Commits

Author SHA1 Message Date
Thomas Bernard
53d5b341c1
GP2X: Underlines of keyboard shortcuts is disabled, there is no keyboard 2019-02-20 13:56:01 +01:00
Thomas Bernard
4283fde82a MOD_CTRL => GFX2_MOD_CTRL, etc. 2019-02-13 15:42:51 +01:00
Thomas Bernard
67020cd146
Win32: show volume names in drive list 2019-02-10 11:04:12 +01:00
Thomas Bernard
ad1c38e2ca
improve Print_in_window_limited(), add Print_in_window_limited_unicode() 2019-02-10 10:56:09 +01:00
Thomas Bernard
4176f1f84b
fix commit for CROSSATARI 2019-02-09 03:52:01 +01:00
Thomas Bernard
5a4ae06720
fix Print_filename() when File_name is empty 2019-01-04 22:56:00 +01:00
Thomas Bernard
c99fa40e6a
display the end of the filename when Spare filename begin is same
diplay :     …lename_end.ext
instead of : finename_begin…
when the begin of Main and Spare file name are the same.
2018-12-18 16:34:05 +01:00
Thomas Bernard
775a594858
fix issue #39
http://pulkomandy.tk/projects/GrafX2/ticket/39

pass the palette argument from Compute_optimal_menu_colors(palette)
to compute_xor_table()
2018-11-29 15:26:22 +01:00
Thomas Bernard
8b32b5141a Easily ask the user a choice btw multiple options 2018-11-26 15:17:11 +01:00
Thomas Bernard
cd5961ce6f const args for 3 functions :
Confirmation_box()
Warning_message()
Requester_window()
2018-11-26 10:56:05 +01:00
Thomas Bernard
459a23fd36
Mode5: show INKs available under cursor on the status line 2018-11-22 23:16:55 +01:00
Thomas Bernard
aa9d0ac3f0
Log user message to the loggin system 2018-11-10 21:32:53 +01:00
Thomas Bernard
725da6307e
Remove warnings with GCC 7
GCC 7 introduced a new warning in switch() statements :
warning: this statement may fall through [-Wimplicit-fallthrough=]
2018-10-17 16:42:54 +02:00
Thomas Bernard
bf29a6837c remove references to SDL_GetModState();
changed
word Key_modifiers(SDLMod mod);
to
word Get_Key_modifiers(void);
2018-07-02 11:38:51 +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
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
a01e7eea69 Implement shortcut/underscore for input button 2018-06-24 15:25:26 +00:00
Thomas Bernard
07bb8fe7a4 windows.c: mark "global" variables as static 2018-03-20 21:58:22 +01:00
Thomas Bernard
3cad389e23 windows.c: use fabsf() for float values 2018-03-20 21:58:22 +01:00
Thomas Bernard
f9616f570a remove warnings when compiling with MSVC++2010 2018-03-19 16:49:32 +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
6f48d7fefe Add MSVC 2010 project file and a make the project compile 2018-02-20 15:45:45 +01:00
Thomas Bernard
2ad59e1686 add Get_font_character_pixel() to get font pixels 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
9a03a54fef Display the current directory in unicode
rename function Print_in_window_utf16() to Print_in_window_unicode()
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
f4f2dfd4ad vasprintf() doesnt exist under Win32 :( 2018-02-19 19:55:50 +01:00
Adrian Castravete
4d017d6e7f Use vasprintf for formatted messages 2018-02-13 23:51:48 +02:00
Adrian Castravete
7059271965 Add indication of offending cell in C64 formats 2018-02-13 13:31:15 +02:00
Thomas Bernard
d79f25c0be rename Remap_UI_window_backgrounds() to Remap_UI_in_window_backgrounds() 2018-01-26 16:13:03 +01:00
Thomas Bernard
48ae5bf0d8 Correctly remap backgrounds buffers of windows 2018-01-25 22:55:27 +01:00
Thomas Bernard
1c6a9e2db2 fix UI colors Remaping when several windows are open 2018-01-25 22:55:27 +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
Adrien Destugues
5b6095f0bc Fix all warnings and enable -Werror
mostly unused variables and broken indentation.
2017-05-06 15:13:50 +02:00
Adrien Destugues
0eaf3fce96 Use iconv to convert filenames from UTF-8.
Patch by miniupnp, with some C89 adjustments.
Enabled for Haiku and the generic Linux/*BSD part of the Makefile.
Please adjust as needed.

Fixes #10 for codepages for which we have a font.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2172 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2016-12-02 19:43:23 +00:00
Adrien Destugues
5d51158231 Show total number of frames in animation bar.
Fixes #11.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2169 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2016-11-22 21:30:23 +00:00
Adrien Destugues
7f4fcde6d7 Fix drawing glitch when selecting/deselecting transparent color.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2124 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-07-01 18:51:11 +00:00
Adrien Destugues
e517902a4b Rework palette screen to be better usable
* RGB sliders are twice as high as before (128 pixels)
* Preview area is larger
* Add save/load buttons (not implemented yet)


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2106 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-03 14:11:11 +00:00
Adrien Destugues
78fcc648c3 Partial merge of the SDL2 branch into trunk
* Mainly get the cleanup of window drawing functions.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2102 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-03-02 13:44:18 +00:00
Adrien Destugues
9d00b93a5f Improve menu palette looks
* Only show the "transparent" marker in layer mode when there is more than one layer
* Use a single pixel separation between colors (bypass menu_factor).


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2090 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-02-23 21:32:51 +00:00
Adrien Destugues
9c1c219348 Make the transparent color more visible with a light/dark grey highlight.
It is often confusing which color is transparent in the color palette. Mark it
with a small pattern to make it easier to see.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2088 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-02-23 19:34:48 +00:00
Yves Rizoud
67d3636512 Fix Lua function matchcolor2() inaccuracies caused by integer arithmetics
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2082 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-02-15 22:20:47 +00:00
Yves Rizoud
365cc8d50b Fix issue 539 : Freeze when palette is 'vertical' and number of rows is not a power of two
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2064 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2013-08-30 00:05:47 +00:00
Adrien Destugues
ee83b59464 Having colors equal to themselves in the XOR table is not a good idea.
Reintroduce a bit of scrambling again.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2051 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2013-02-03 18:15:15 +00:00
Adrien Destugues
1dce247656 Improve XOR table computation.
Set the initial state to XOR[i]=i, so that on very low color images, the algorithm will try 
to swap around the first colors.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2049 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2013-02-02 08:38:08 +00:00
Adrien Destugues
878c926ce4 Fix issue 185 (XOR highlight) :
* Use a simple optimization algorithm to compute a good set of XOR color pairs
 * Algorothm is not very optimized (complexity is up to n^3). In practize, it stabilizes after 2 to 3 rounds of swapping colors
 * Use this color table for all XOR effects
 * Setting for grid color is now removed


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2048 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2013-01-06 12:46:46 +00:00
Yves Rizoud
fbdde8d16c Issue 490: color 255 selected FG by default
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2021 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-09-30 16:25:52 +00:00