diff options
author | nyamatongwe <devnull@localhost> | 2011-06-25 07:58:03 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-06-25 07:58:03 +1000 |
commit | a35215c303f35e22892193728026b408d083a665 (patch) | |
tree | 388603057382fa1d784e6fee72e88ba80f5e03a3 /src/Editor.cxx | |
parent | 85dc0204832948824579888601f33c7894b5dd50 (diff) | |
download | scintilla-mirror-a35215c303f35e22892193728026b408d083a665.tar.gz |
Initial implementation of RGBA images.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 26c260101..ff9872e58 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -13,6 +13,7 @@ #include <string> #include <vector> +#include <map> #include <algorithm> #include <memory> @@ -8020,6 +8021,22 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { RedrawSelMargin(); break; + case SCI_RGBAIMAGESETWIDTH: + sizeRGBAImage.x = wParam; + break; + + case SCI_RGBAIMAGESETHEIGHT: + sizeRGBAImage.y = wParam; + break; + + case SCI_MARKERDEFINERGBAIMAGE: + if (wParam <= MARKER_MAX) { + vs.markers[wParam].SetRGBAImage(sizeRGBAImage, reinterpret_cast<unsigned char *>(lParam)); + }; + InvalidateStyleData(); + RedrawSelMargin(); + break; + case SCI_SETMARGINTYPEN: if (ValidMargin(wParam)) { vs.ms[wParam].style = lParam; |