浏览代码

Fehler behoben

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

+ 5 - 5
Asteroids/Initialisierung/Initialisierung.cpp

@@ -19,7 +19,7 @@ Knopf *initKnopf( int x, int y, int br, int h
 KontrollKnopf *initKontrollKnopf( int x, int y, int br, int hö, Schrift *zSchrift, int style, char *txt )
 {
 	KontrollKnopf *ret = new KontrollKnopf();
-	ret->setStyle( style );
+	ret->addStyle( style );
 	if( zSchrift )
 		ret->setSchriftZ( zSchrift->getThis() );
 	if( txt )
@@ -49,7 +49,7 @@ KontrollKnopf *initKontrollKnopf( int x, int y, int br, int h
 Fenster *initFenster( int x, int y, int br, int hö, Schrift *zSchrift, int style, char *titel )
 {
 	Fenster *ret = new Fenster();
-	ret->setStyle( style );
+	ret->addStyle( style );
 	ret->setPosition( x, y );
 	ret->setSize( br, hö );
 	if( ret->hatStyle( Fenster::Style::Rahmen ) )
@@ -105,7 +105,7 @@ TextFeld *initTextFeld( int x, int y, int br, int h
 BildZ *initBildZ( int x, int y, int br, int hö, int style, Bild *b )
 {
 	BildZ *ret = new BildZ();
-	ret->setStyle( style );
+	ret->addStyle( style );
 	ret->setPosition( x, y );
 	ret->setSize( br, hö );
 	if( b )
@@ -121,7 +121,7 @@ BildZ *initBildZ( 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 )
@@ -167,7 +167,7 @@ AuswahlBox *initAuswahlBox( int x, int y, int br, int h
 ObjTabelle *initObjTabelle( int x, int y, int br, int hö, Schrift *zSchrift, int 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 )