Skip to content
Permalink
Browse files

ULTIMA8: Fixing uninitialized field warnings

  • Loading branch information
dreammaster committed Feb 10, 2020
1 parent f9744da commit 44f5bed2484fa2435600a3e2f95b54c63550bc6d
@@ -43,7 +43,7 @@ namespace Ultima8 {

AudioChannel::AudioChannel(Audio::Mixer *mixer, uint32 sampleRate, bool stereo) :
_mixer(mixer), _decompressorSize(0), _frameSize(0), _loop(0), _sample(0),
_frameEvenOdd(0), _paused(false) {
_frameEvenOdd(0), _paused(false), _priority(0) {
}

AudioChannel::~AudioChannel(void) {
@@ -48,7 +48,8 @@ class Scaler {
ScalerFunc Scale32_A888;
ScalerFunc Scale32_888A;

Scaler() {}
Scaler() : Scale16Nat(0), Scale16Sta(0), Scale32Nat(0), Scale32Sta(0),
Scale32_A888(0), Scale32_888A(0) {}
public:
//
// Scaler Capabilites
@@ -38,17 +38,16 @@ namespace Ultima8 {

DEFINE_RUNTIME_CLASSTYPE_CODE(TextWidget, Gump)

TextWidget::TextWidget()
: Gump(), cached_text(0) {

TextWidget::TextWidget() : Gump(), gamefont(false), fontnum(0), blendColour(0),
tx(0), ty(0), current_start(0), current_end(0), targetwidth(0), targetheight(0),
cached_text(0), textalign(Font::TEXT_LEFT) {
}

TextWidget::TextWidget(int X, int Y, Std::string txt, bool gamefont_, int font,
int w, int h, Font::TextAlign align) :
Gump(X, Y, w, h), text(txt), gamefont(gamefont_), fontnum(font),
blendColour(0), current_start(0), current_end(0),
targetwidth(w), targetheight(h), cached_text(0), textalign(align) {

}

TextWidget::~TextWidget(void) {

0 comments on commit 44f5bed

Please sign in to comment.
You can’t perform that action at this time.