I’ve seen some depictions in paintings [1] where you can see soldiers from the Habsburg (wearing the Catalan berretinas) porting a Spanish flag... I believe it was more a war for two different models for Spain, not for independence or anything like that. Sounds like revisionism to me.
[1] http://www.msde.es/wp-content/uploads/2012/10/2-Embarque-de-...