Artur Jarosik
10f11e3359
Update Amiga OS build
2022-10-24 19:18:22 +02:00
Thomas Bernard
7e5daa65a8
fix Surface_to_bytefield()
...
Each line of the SDL surface use "pitch" bytes.
see https://pulkomandy.tk/projects/GrafX2/ticket/171
2022-10-07 06:45:38 +00:00
Adrien Destugues
32ec828835
Group all copyright statements in a single file.
...
This gives a much clearer overview of the licensing.
It also shows there are some problems:
- Some files are under GPLv3 only
- Some files have no known license at all.
2020-12-19 21:56:33 +00:00
Thomas Bernard
7de6a95291
SDL2: restore window position on startup
2020-12-10 00:13:40 +01:00
Thomas Bernard
6367ffa5a9
GFX2_MessageBox(): Doxygen + fix return code
2020-05-06 11:38:38 +02:00
Thomas Bernard
795989c5c3
remove outdated comment
2020-05-06 11:25:36 +02:00
Thomas BERNARD
9c7057eab7
Implementation of GFX2_MessageBox() for SDL1.2.x and Mac OS X
2020-05-05 23:42:49 +02:00
Thomas Bernard
b0f1117bbc
GFX2_MessageBox()
...
Especially useful to display startup errors
2020-05-05 21:39:20 +02:00
laikh
bff40ba97a
Use GCLP_HICON instead of GCL_HICON for 64-bit Windows compatibility
2020-04-21 13:27:33 +08:00
Thomas Bernard
2c9b79a6af
Warning() => GFX2_Log(GFX2_WARNING)
2020-04-13 01:34:12 +02:00
Thomas Bernard
3551f6bbc6
screen.h: remove #include <windows.h>
2020-04-11 22:42:33 +02:00
Thomas BERNARD
6550e704fc
SetPalette() => GFX2_SetPalette()
2020-02-15 12:45:40 +01:00
Thomas Bernard
923da28d9d
remove MAX_PATH_CHARACTERS in Define_icon()
2019-05-07 17:25:17 +02:00
Romain Graillot
d36e59ca9c
Add Nintendo Switch support (including gitlab-ci, gitlab-pages etc.)
2019-04-28 11:18:23 +02:00
Thomas Bernard
5ebb6dc463
fix warning about M_PI and MAX_PATH redefinition
2019-02-20 13:56:01 +01:00
Thomas Bernard
206c67e77c
move Set_mouse_position() to sdlscreen.c / win32screen.c / etc.
2019-02-05 00:25:59 +01:00
Thomas Bernard
8459266c47
Add MSVC project for SDL2 build + SDL2 unicode text input for win32
2019-01-25 15:11:29 +01:00
Thomas Bernard
d556df556d
sdl: Get_Screen_pixel_ptr() improve debug log...
2019-01-04 23:24:53 +01:00
Thomas Bernard
c4159247c8
SDL2: fix color cycling
2018-09-18 14:36:07 +02:00
Thomas Bernard
88430bb92f
Add NO_X11 option at compiletime to disable X11 specific stuff with SDL driver
...
just compile with
$ NO_X11=1 make
2018-07-20 12:26:52 +02:00
Thomas Bernard
6ec72f6b71
check for X11_display when using SDL
...
SDL can be using another video driver
2018-07-20 12:19:34 +02:00
Thomas Bernard
d7c6193c21
SDL/x11 : make Copy/Paste and Drag&Drop work
2018-07-17 01:09:04 +02:00
Thomas Bernard
0843bd6a3c
use SDL2 Drop Event when available
...
Signed-off-by: Thomas Bernard <miniupnp@free.fr>
2018-07-17 01:09:04 +02:00
Thomas Bernard
4978a7cfe2
convert Warning() and DEBUG() to GFX2_Log()
2018-07-12 20:41:49 +02:00
Thomas Bernard
b5d64d35d4
win32/sdl: fix icon resource ID
2018-07-11 11:54:22 +02:00
Thomas Bernard
18e942d486
Support fullscreen with SDL2
2018-07-02 11:38:51 +02:00
Thomas Bernard
099301721e
Properly set icon for SDL2. Also use the .png which is better resolution
2018-07-02 11:38:51 +02:00
Thomas Bernard
53aa22263f
Allow SDL2 window to be resized
2018-07-02 11:38:51 +02:00
Thomas Bernard
cb2d479867
add GFX2_Get_Window_Handle() to get the win32 HWND
...
and use it
2018-07-02 11:38:51 +02:00
Thomas Bernard
c6fdb6064c
Cleanup : rename Set_mode_SDL() to GFX2_Set_mode()
2018-07-02 11:38:51 +02:00
Thomas Bernard
22e0bcc01f
introduce GFX2_UpdateScreen()
2018-07-02 11:38:51 +02:00
Thomas Bernard
d86efa58e4
Compilation with SDL2 (to be finalized) > API=sdl2 make
2018-07-02 11:38:51 +02:00
Thomas Bernard
a6c948b27e
don't use SDL in Load_surface() anymore
...
So the init phase does not depend on SDL anymore.
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
8ae651c75f
put common fields for Main and Spare page in a T_Document structure
2018-01-22 14:46:44 +01:00
Thomas BERNARD
e36cff0fef
Hide cursor if we failed to set our 1 pix transparent cursor
...
SDL_ShowCursor() can take SDL_ENABLE / SDL_DISABLE or SDL_QUERY
2018-01-10 20:51:11 +01:00
Thomas Bernard
99d135fdd5
sdlscreen.c : removed unused arg warning in Update_rect()
2017-08-08 18:29:06 +02:00
Adrien Destugues
61c8dca353
Add a port to the GCW Zero, contributed by David Knight.
...
Untested since I don't have the hardware.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2080 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2015-02-10 20:13:57 +00:00
Yves Rizoud
1248100ae9
Integrate path fix from Android port (tnanks a lot Pelya)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2071 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2014-03-30 17:31:05 +00:00
Yves Rizoud
d8bb1e1d55
Fix some mostly harmless warnings and re-generated dependencies. Now compiles with zero warnings on Linux (gcc 4.1.2)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1945 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2012-05-03 21:32:59 +00:00
Yves Rizoud
63dcf9cc25
Performance improvement for slow graphic systems: avoid lag on X11 (Issue 405,269)
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1780 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-04-16 18:24:24 +00:00
Yves Rizoud
d0aaabf6b2
Merge of r1709 into trunk: Atari Falcon port
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1710 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-02-06 19:30:55 +00:00
Yves Rizoud
57a1bda6de
Improved text with bitmap fonts : Works great with 'Get brush colors' (F11) to import the exact font colors.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1708 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2011-02-05 19:43:51 +00:00
Yves Rizoud
e5272e74f7
Fix memory alignment problem that caused wrong color columns when loading 24bit imges on Caanoo. Thanks PheeL for report
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1638 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-10-25 21:15:43 +00:00
Yves Rizoud
d78c33855b
Drag-n-drop file in Grafx2 window is now cleanly prevented while a window is open: The OS's mouse cursor is the 'forbidden' sign. Preparatory work for horizontal slider controls.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1597 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-08-29 19:21:33 +00:00
Yves Rizoud
4ea23b3e9a
Color cycling based on the ranges in Grad menu. A speed slider has appeared. The speed data (and all cycling) is loaded from IFF/ILBM images from Deluxe Paint, Amiga and DOS versions. The data is not saved at the moment, so you shouldn't re-save cycling images
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1573 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-08-14 23:23:10 +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
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
Yves Rizoud
3ca5322379
Reorganized source code and directory tree.
...
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1375 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2010-03-05 02:53:19 +00:00