diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-04-15 22:06:56 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-04-15 22:06:56 +0200 |
commit | c78cb17e2a8055f71d210e719e72ace7e9fb7b2e (patch) | |
tree | b763599952d8ae94f6b32f1f2f5aea87e4f764fa /src/fake_w32gdi.c | |
parent | Cython side of Windows GDI support (diff) | |
download | blueshift-c78cb17e2a8055f71d210e719e72ace7e9fb7b2e.tar.gz blueshift-c78cb17e2a8055f71d210e719e72ace7e9fb7b2e.tar.bz2 blueshift-c78cb17e2a8055f71d210e719e72ace7e9fb7b2e.tar.xz |
fix errors and warnings
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/fake_w32gdi.c')
-rw-r--r-- | src/fake_w32gdi.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/fake_w32gdi.c b/src/fake_w32gdi.c index df8fe7e..de768e7 100644 --- a/src/fake_w32gdi.c +++ b/src/fake_w32gdi.c @@ -14,7 +14,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "fake-w32gdi.h" +#include "fake_w32gdi.h" #include <stdio.h> #include <stdlib.h> @@ -86,8 +86,7 @@ BOOL SetDeviceGammaRamp(HDC hDC, LPVOID lpRamp) ((uint16_t *)lpRamp) + 0 * GAMMA_RAMP_SIZE, ((uint16_t *)lpRamp) + 1 * GAMMA_RAMP_SIZE, ((uint16_t *)lpRamp) + 2 * GAMMA_RAMP_SIZE); - xcb_generic_error_t* error = xcb_request_check(conn, gamma_cookie); - return error == NULL ? TRUE : FALSE; + return xcb_request_check(conn, gamma_cookie) == NULL ? TRUE : FALSE; } @@ -121,13 +120,15 @@ BOOL GetDeviceGammaRamp(HDC hDC, LPVOID lpRamp) /* http://msdn.microsoft.com/en-us/library/windows/desktop/dd183490(v=vs.85).aspx */ HDC CreateDC(LPCTSTR lpszDriver, LPCTSTR lpszDevice, void *lpszOutput, void *lpInitData) { + int crtc_index; + (void) lpszOutput; (void) lpInitData; if (strcmp(lpszDriver, "DISPLAY")) return NULL; - int crtc_index = atoi(lpszDevice); + crtc_index = atoi(lpszDevice); if (dc_count == 0) { @@ -170,9 +171,10 @@ HDC CreateDC(LPCTSTR lpszDriver, LPCTSTR lpszDevice, void *lpszOutput, void *lpI /* http://msdn.microsoft.com/en-us/library/windows/desktop/dd162609(v=vs.85).aspx */ BOOL EnumDisplayDevices(LPCTSTR lpDevice, DWORD iDevNum, PDISPLAY_DEVICE lpDisplayDevice, DWORD dwFlags) { + size_t count = (size_t)crtc_count; + (void) dwFlags; - size_t count = (size_t)crtc_count; if (lpDevice != NULL) { fprintf(stderr, "lpDevice (argument 1) for EnumDisplayDevices should be NULL\n"); |