aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorKostas Nakos2007-06-10 08:19:16 +0000
committerKostas Nakos2007-06-10 08:19:16 +0000
commitf164c6c14e6484e553256d81e5ea861dfb9a9e5c (patch)
treebe81ddc3d4c28944a8a5ba0458211155e2198241 /backends/platform
parent0a11c241d578733a268be7db31a47d108a52d556 (diff)
downloadscummvm-rg350-f164c6c14e6484e553256d81e5ea861dfb9a9e5c.tar.gz
scummvm-rg350-f164c6c14e6484e553256d81e5ea861dfb9a9e5c.tar.bz2
scummvm-rg350-f164c6c14e6484e553256d81e5ea861dfb9a9e5c.zip
formatting
svn-id: r27285
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/wince/CEDevice.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/backends/platform/wince/CEDevice.cpp b/backends/platform/wince/CEDevice.cpp
index a76360f590..855c601741 100644
--- a/backends/platform/wince/CEDevice.cpp
+++ b/backends/platform/wince/CEDevice.cpp
@@ -53,15 +53,13 @@ DWORD CEDevice::reg_access(TCHAR *key, TCHAR *val, DWORD data) {
return data;
cbdata = sizeof(DWORD);
- if (RegQueryValueEx(regkey, val, NULL, NULL, (LPBYTE) &tmpval, &cbdata) != ERROR_SUCCESS)
- {
+ if (RegQueryValueEx(regkey, val, NULL, NULL, (LPBYTE) &tmpval, &cbdata) != ERROR_SUCCESS) {
RegCloseKey(regkey);
return data;
}
cbdata = sizeof(DWORD);
- if (RegSetValueEx(regkey, val, 0, REG_DWORD, (LPBYTE) &data, cbdata) != ERROR_SUCCESS)
- {
+ if (RegSetValueEx(regkey, val, 0, REG_DWORD, (LPBYTE) &data, cbdata) != ERROR_SUCCESS) {
RegCloseKey(regkey);
return data;
}
@@ -78,8 +76,7 @@ void CEDevice::backlight_xchg() {
REG_disp = reg_access(TEXT("ControlPanel\\Power"), TEXT("Display"), REG_disp);
h = CreateEvent(NULL, FALSE, FALSE, TEXT("BackLightChangeEvent"));
- if (h)
- {
+ if (h) {
SetEvent(h);
CloseHandle(h);
}