From 9310e248b44282ab17b7ce6b011539602087b921 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Fri, 25 Jun 2004 12:09:48 +0000 Subject: [PATCH] Fix DMA Combobox in ConfigurationWindow, added a space between IRQs and DMAs in DeviceWindow git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8158 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/prefs/devices/ConfigurationWindow.cpp | 4 ++-- src/prefs/devices/DevicesWindow.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/prefs/devices/ConfigurationWindow.cpp b/src/prefs/devices/ConfigurationWindow.cpp index b6c86f42e5..7d9ec7794b 100644 --- a/src/prefs/devices/ConfigurationWindow.cpp +++ b/src/prefs/devices/ConfigurationWindow.cpp @@ -334,9 +334,9 @@ ConfigurationWindow::InitWindow(void) char value[50]; sprintf(value, "%d", j); BMenuItem *item = new BMenuItem(value, new BMessage(DMA_CHANGED)); - fDMAMenu[k++]->AddItem(item); + fDMAMenu[k]->AddItem(item); item->SetMarked(true); - fDMAField[k]->SetEnabled(true); + fDMAField[k++]->SetEnabled(true); } } } diff --git a/src/prefs/devices/DevicesWindow.cpp b/src/prefs/devices/DevicesWindow.cpp index 71a8af1c90..44feb9fb5a 100644 --- a/src/prefs/devices/DevicesWindow.cpp +++ b/src/prefs/devices/DevicesWindow.cpp @@ -422,7 +422,7 @@ DevicesWindow::UpdateDeviceInfo() for (;mask;mask>>=1,i++) if (mask & 1) { char value[50]; - sprintf(value, "%s%d", first ? "" : ",", i); + sprintf(value, "%s%d", first ? "" : ", ", i); text += value; first = false; } @@ -446,7 +446,7 @@ DevicesWindow::UpdateDeviceInfo() for (;mask;mask>>=1,i++) if (mask & 1) { char value[50]; - sprintf(value, "%s%d", first ? "" : ",", i); + sprintf(value, "%s%d", first ? "" : ", ", i); text += value; first = false; } @@ -511,4 +511,4 @@ DevicesWindow::BlankDeviceInfoBox() stvIORanges->SetText("IO Ranges: "); stvMemoryRanges->SetText("Memory Ranges: "); btnConfigure->SetEnabled(false); -} \ No newline at end of file +}