浏览代码

Fehler behoben

Kolja Strohm 5 年之前
父节点
当前提交
9b35c261f5
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Tetris/Initialisierung.cpp

+ 3 - 3
Tetris/Initialisierung.cpp

@@ -19,7 +19,7 @@ KontrollKnopf *initKontrollKnopf( int x, int y, int br, int h
 {
 	KontrollKnopf *ret = new KontrollKnopf();
 	ret->setMausEreignis( _ret1ME );
-	ret->setStyle( style );
+	ret->addStyle( style );
 	ret->setSchriftZ( zSchrift->getThis() );
 	ret->setText( txt );
 	ret->setSText( txt );
@@ -67,7 +67,7 @@ TextFeld *initTextFeld( int x, int y, int br, int h
 AuswahlBox *initAuswahlBox( int x, int y, int br, int hö, Schrift *zSchrift, __int64 style, std::initializer_list< char * > values )
 {
 	AuswahlBox *ret = new AuswahlBox();
-	ret->setStyle( style );
+	ret->addStyle( style );
 	ret->setPosition( x, y );
 	ret->setSize( br, hö );
 	if( ( style | AuswahlBox::Style::Hintergrund ) == style )
@@ -113,7 +113,7 @@ AuswahlBox *initAuswahlBox( int x, int y, int br, int h
 ObjTabelle *initObjTabelle( int x, int y, int br, int hö, Schrift *zSchrift, __int64 style, std::initializer_list< OBJTabelleSpalteIni > spalten, int überschriftHöhe )
 {
 	ObjTabelle *ret = new ObjTabelle();
-	ret->setStyle( style );
+	ret->addStyle( style );
 	ret->setPosition( x, y );
 	ret->setSize( br, hö );
 	if( ( style | ObjTabelle::Style::Erlaubt ) == style )