mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
Painter MMX expriments, SqlSelect(....) fix
git-svn-id: svn://ultimatepp.org/upp/trunk@793 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
f1406a4be0
commit
fa4a158823
4 changed files with 15 additions and 3 deletions
|
|
@ -58,8 +58,10 @@ void BufferPainter::upp_pixfmt::blend_solid_hspan(int x, int y, int len,
|
|||
if(c.a == 0) return;
|
||||
RGBA *t = ptr(x, y);
|
||||
#ifdef USE_MMX
|
||||
if(!noaa) {
|
||||
AlphaBlendCover((dword *)t, *(dword *)&c, covers, len);
|
||||
return;
|
||||
}
|
||||
#else
|
||||
RGBA *e = t + len;
|
||||
while(t < e) {
|
||||
|
|
|
|||
|
|
@ -162,6 +162,14 @@ SqlSelect::SqlSelect(Fields f) {
|
|||
|
||||
#define E__SCat(I) set.Cat(p##I)
|
||||
|
||||
#define E__QSqlSelectF(I) \
|
||||
SqlSelect::SqlSelect(__List##I(E__SqlVal)) { \
|
||||
SqlSet set; \
|
||||
__List##I(E__SCat); \
|
||||
text = ~set; \
|
||||
}
|
||||
__Expand(E__QSqlSelectF);
|
||||
|
||||
#define E__QSelectF(I) \
|
||||
SqlSelect Select(__List##I(E__SqlVal)) { \
|
||||
SqlSet set; \
|
||||
|
|
|
|||
|
|
@ -489,6 +489,8 @@ public:
|
|||
SqlSelect(Fields f);
|
||||
SqlSelect(const SqlSet& s) { text = ~s; }
|
||||
SqlSelect() {}
|
||||
#define E__QSelect(I) SqlSelect(__List##I(E__SqlVal));
|
||||
__Expand(E__QSelect);
|
||||
|
||||
bool IsEmpty() { return text.IsEmpty(); }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue