Skip to content

Commit d213e48

Browse files
committed
SDL: Update editor popup appearance
1 parent 9fed846 commit d213e48

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/ui/audio.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ bool audio_open() {
145145
bool result;
146146
ma_backend backends[] = {
147147
// uncomment for audio in linux
148-
//ma_backend_alsa,
149-
//ma_backend_jack,
148+
ma_backend_alsa,
149+
ma_backend_jack,
150150
//ma_backend_pulseaudio,
151151
ma_backend_wasapi,
152152
ma_backend_dsound

src/ui/textedit.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,9 @@ char EditBuffer::getChar(int pos) {
412412
}
413413

414414
int EditBuffer::insertChars(int pos, const char *text, int num) {
415+
if (num == 1 && *text < 0) {
416+
return 0;
417+
}
415418
int required = _len + num + 1;
416419
if (required >= _size) {
417420
_size += (required + GROW_SIZE);

0 commit comments

Comments
 (0)