David Capello
41114580ae
Move SkiaEventQueue to WinEventQueue
...
Added queueEvent() member function to EventQueue interface.
2015-05-22 11:56:07 -03:00
David Capello
02f8fd7920
Implement SkiaSurface::drawString/Char/ColoredRgbaSurface with a skColorFilter
2015-05-22 11:05:13 -03:00
David Capello
bb7d629471
Use SrcOver mode in SkiaSurface::drawRgbaSurface()
2015-05-22 11:02:46 -03:00
David Capello
3674399d0b
Use SrcOver mode in SkiaSurface::fillRect()
2015-05-22 11:02:17 -03:00
David Capello
b44c4f8b7b
Fix random pixels from memory in SkiaSurface::create/createRgba/applyScale()
2015-05-22 11:01:24 -03:00
David Capello
def9e7242a
Remove commented line in skia_system.h
2015-05-22 10:56:40 -03:00
David Capello
6a8dfaddb5
Use ButtonSet instead of Buttons in ColorSelector
2015-05-21 18:24:31 -03:00
David Capello
1b5628fe42
Don't persist the active tool between sessions
2015-05-21 16:31:20 -03:00
David Capello
27485b7ff6
Fix problem selecting transparent color from the ColorBar with middle button
...
When we move the mouse with the middle mouse button, we must trigger
onPaletteViewIndexChange() delegate in any case (the middle button
doesn't change the m_currentEntry).
2015-05-21 16:25:41 -03:00
David Capello
2ff0f1e2a4
Remove app::tools::PreferencesGlue
...
Now we check the trace policy and intertwine in the same ToolLoopBase
class just before start drawing.
2015-05-21 16:14:26 -03:00
David Capello
49954ddd29
Create ToolLoopBase with common code between ToolLoopImpl and PreviewToolLoopImpl
2015-05-21 16:00:27 -03:00
David Capello
dd1c1dc40f
Fix bug firing Option::AfterChange signal with previous value
2015-05-21 12:55:51 -03:00
David Capello
bb45a55bbd
Change PaletteEditor buttons to button sets
2015-05-21 12:28:21 -03:00
David Capello
badbd42cbc
Minor change in Palette menu
2015-05-21 11:15:44 -03:00
David Capello
3f7e0b920a
Dispose the native file selector regardless its return code
2015-05-21 10:52:58 -03:00
David Capello
9abb9f1dad
Fix double-click on Win/Skia port
2015-05-21 10:50:08 -03:00
David Capello
9b07e0f9bf
Enable Remap button only for Indexed images
2015-05-21 10:44:15 -03:00
David Capello
5fc3b06e8e
Change ColorMap::m_remap to UniquePtr
2015-05-21 10:39:09 -03:00
David Capello
85d638097b
Use rendered images to create optimized palette in render::create_palette_from_rgb()
2015-05-21 10:17:59 -03:00
David Capello
13ac74f37a
Remap transparent color when ColorBar "Remap" button is used ( fix #677 )
2015-05-21 09:27:34 -03:00
David Capello
ec26dd7ee9
Merge branch 'fix-memory-leaks'
2015-05-20 17:11:34 -03:00
David Capello
a1b900325e
Delete default skin font on exit
2015-05-20 16:58:23 -03:00
David Capello
9f6447f4af
Fix app::Document::m_mutex leak
2015-05-20 16:56:08 -03:00
David Capello
ca16580b09
Don't create PalettePopup when the program starts
2015-05-20 16:51:32 -03:00
David Capello
e730b90958
Delete UndoCommands when the UndoHistory is destroyed
2015-05-20 16:51:07 -03:00
David Capello
c04f4976fb
Delete slots in signal destructors
2015-05-20 16:24:58 -03:00
David Capello
621c4bb05d
Link with dbghelp when memory-leak detection is enabled
2015-05-20 16:24:26 -03:00
David Capello
f683c50198
Destroy Editor render buffer on exit
2015-05-20 16:23:53 -03:00
David Capello
15a227d06f
Add support for .pal files ( fix #349 , related to #181 )
2015-05-20 16:08:16 -03:00
David Capello
5dee5f3a57
Save HttpLoader output as binary
2015-05-20 15:35:59 -03:00
David Capello
cf8cd97cb6
Use new FSTREAM_PATH() macro to open fstreams
2015-05-20 15:34:36 -03:00
David Capello
a4e7df6037
Fix loading/saving .gpl files inside folders with Unicode chars on Windows
2015-05-20 15:33:34 -03:00
David Capello
104e5e6479
Shift key locks X/Y axis in Move tool ( fix #602 )
2015-05-20 15:07:17 -03:00
David Capello
9b9ac319dc
Rename checkFromAllegroKeyArray() members to isPressed()
2015-05-20 15:02:31 -03:00
David Capello
13aef4eecf
Add support to change the transparent color with middle click
2015-05-20 12:11:47 -03:00
David Capello
1ff4f06a69
Show transparent index in ColorBar with a little dot
2015-05-20 11:40:22 -03:00
David Capello
ae048f5756
Avoid including ColorBar in PaletteView
2015-05-20 11:38:38 -03:00
David Capello
23a4cb3a0b
Fix some problems updating the StatusBar cel opacity slider
...
Now the StatusBar observes changes in the cel opacity to update the
slider (e.g. when we change the cel opacity through Cel > Properties
menu, the StatusBar refresh its slider).
2015-05-19 16:39:47 -03:00
David Capello
a90a70bd1e
Avoid giving F10 and Alt keys to the system on Win32/Skia port
2015-05-19 15:45:49 -03:00
David Capello
189ee56c4c
Implement she::is_key_pressed() on Win32 for the Skia port
2015-05-19 15:34:47 -03:00
David Capello
20f532ffe8
Add Unicode char to WM_KEYDOWN processing in she::Window<T>
2015-05-19 15:17:07 -03:00
David Capello
4c0bbd50f8
Complete she::win32vk_to_scancode() conversions
2015-05-19 14:51:01 -03:00
David Capello
1c447fdeee
Fix RGB mask/shift flags for 32bpp in Skia port
2015-05-19 14:21:04 -03:00
David Capello
524930fe54
Implement she::clock_value() with GetTickCount() on Win32 when we use Skia
2015-05-19 14:08:18 -03:00
David Capello
c21a84c9c9
Add zlib as libpng dependency
2015-05-19 14:02:52 -03:00
David Capello
9a1c522084
Remove unused variables
2015-05-19 13:44:00 -03:00
David Capello
288235fe32
Don't set the palette if we change the current frame of an inactive Editor
...
This happens when we press the play button in one Editor (it changes to
PlayState) and we start using other Editor. We don't want to change
the current palette/ColorBar for that animation playing in the background.
Fix #676
2015-05-18 21:34:30 -03:00
David Capello
e973aa0cc7
Don't close the Preview window if we close an unrelated Editor
2015-05-18 21:28:30 -03:00
David Capello
e106f6feec
Don't use get_current_palette() in set_win32_clipboard_bitmap()
2015-05-18 21:18:02 -03:00
David Capello
dd4683a27b
Remove unused function set_black_palette()
2015-05-18 21:17:16 -03:00