CtrlCore: Fixed Gtk ImageDraw text caching bug (causing problems with text in icondes)

git-svn-id: svn://ultimatepp.org/upp/trunk@8087 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2015-01-22 09:44:45 +00:00
parent d274c57edc
commit ee33dfc5f9
5 changed files with 8 additions and 4 deletions

View file

@ -35,7 +35,7 @@ library(DRAGONFLY) "Xext Xinerama";
file
Core readonly separator,
CtrlCore.h options PCH,
CtrlCore.h options(BUILDER_OPTION) PCH,
MKeys.h,
stdids.h,
SystemDraw.cpp,

View file

@ -138,6 +138,10 @@ void CairoGet(ImageBuffer& b, Size isz, cairo_surface_t *surface, cairo_surface_
void ImageDraw::FetchStraight(ImageBuffer& b) const
{
ImageDraw *m = const_cast<ImageDraw *>(this);
m->FlushText();
if(alpha_surface)
m->alpha.FlushText();
CairoGet(b, isz, surface, alpha_surface);
}

View file

@ -3,7 +3,7 @@
#include "Draw/init"
#include "plugin\bmp/init"
#include "RichText/init"
#define BLITZ_INDEX__ F656a4ea94e4f808b1ec63034b0e6c5ac
#define BLITZ_INDEX__ Fe2ff541f9bb9f4ad3f5bcc23a34e1b73
#include "CtrlCore.icpp"
#undef BLITZ_INDEX__
#endif

View file

@ -8,7 +8,7 @@ uses
RichEdit;
file
IconDes.h options PCH,
IconDes.h options(BUILDER_OPTION) PCH,
IconDes.key,
IconDraw.cpp,
AlphaCtrl.cpp,

View file

@ -25,7 +25,7 @@ link(WIN32 MSC) /MAP;
file
IDE readonly separator,
ide.h options PCH,
ide.h options(BUILDER_OPTION) PCH,
version.h,
UppDlg.h,
BaseDlg.cpp,