make all subproject compile passed

This commit is contained in:
houzh 2024-01-17 11:08:39 +08:00
parent e839f09a1f
commit cde7e7b0ae
5 changed files with 14 additions and 10 deletions

View File

@ -1,6 +1,6 @@
#include <cdroid.h>
#if ENABLE_BARCODE
#include <ext_widget/barcodeview.h>
#include <widgetEx/barcodeview.h>
#endif
int main(int argc,const char*argv[]){

View File

@ -52,11 +52,15 @@ struct CRect{
height=h;
}
void inflate(T dx,T dy){
left-=dx;
top -=dy;
width+=(dx+dx);
height+=(dy+dy);
}
void inset(T dx,T dy){
left +=dx;
top +=dy;
width-=(dx+dx);
height-=(dy+dy);
inflate(-dx,-dy);
}
bool empty()const{

View File

@ -1 +1 @@
add_subdirectory(wpa)
#add_subdirectory(wpa)

View File

@ -285,7 +285,7 @@ TEST_F(DRAWABLE,clipdrawable){
ShapeDrawable*sd=new ShapeDrawable();
Shape*sp=new RectShape();
ClipDrawable *cd2=new ClipDrawable(sd,Gravity::CENTER);
ClipDrawable *cd2=new ClipDrawable(sd,Gravity::CENTER,ClipDrawable::HORIZONTAL);
sd->setShape(sp);
cd2->setDrawable(sd);
sp->setSolidColor(0xFFFF0000);

View File

@ -71,7 +71,7 @@ TEST_F(MUTATE,ninepatch){
TEST_F(MUTATE,clip){
ColorDrawable*c=new ColorDrawable(0xFFFF0000);
ClipDrawable*d1=new ClipDrawable(c,0);
ClipDrawable*d1=new ClipDrawable(c,0,0);
ClipDrawable*d2=(ClipDrawable*)d1->getConstantState()->newDrawable();
ASSERT_NE(d2->getDrawable(),(void*)nullptr);
ASSERT_NE(dynamic_cast<ClipDrawable*>(d2),(void*)nullptr);
@ -81,7 +81,7 @@ TEST_F(MUTATE,clip){
TEST_F(MUTATE,clipshape){
ShapeDrawable*c=new ShapeDrawable();
ClipDrawable*d1=new ClipDrawable(c,0);
ClipDrawable*d1=new ClipDrawable(c,0,0);
ClipDrawable*d2=(ClipDrawable*)d1->getConstantState()->newDrawable();
ASSERT_NE(d2->getDrawable(),(void*)nullptr);
ASSERT_NE(dynamic_cast<ShapeDrawable*>(d2->getDrawable()),(void*)nullptr);