he had been trapped inside this painted hell for three hundred years , cursed to remain imprisoned behind a wall of glass until the wizard who had cursed him died , or until a mortal woman called him forth of her own free will .