diff options
author | nyamatongwe <unknown> | 2011-06-25 07:58:03 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-06-25 07:58:03 +1000 |
commit | 640bc7546d4d8ad5228e09ed2d280ea12b0690e9 (patch) | |
tree | 8b0e456078c1db7c0751a9edee6bfbe258a24792 /src/Editor.cxx | |
parent | aa198d68b4f938a20aadfb53267fab87f64a7004 (diff) | |
download | scintilla-mirror-640bc7546d4d8ad5228e09ed2d280ea12b0690e9.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; |