DXGL r313 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r312
|
r313
|
r314
>
Date:
20:59, 13 January 2013
Author:
admin
Status:
new
Tags:
Comment:
Revert R301 in dxglcfg.cpp
Modified paths:
/dxglcfg/dxglcfg.cpp
(modified) (
history
)
Diff
[
purge
]
Index: dxglcfg/dxglcfg.cpp
—
—
@@ -1,5 +1,5 @@
2
2
// DXGL
3
-// Copyright (C) 2011-2013 William Feely
3
+// Copyright (C) 2011-2012 William Feely
4
4
5
5
// This library is free software; you can redistribute it and/or
6
6
// modify it under the terms of the GNU Lesser General Public
—
—
@@ -705,7 +705,7 @@
706
706
case IDC_APPS:
707
707
OldTextColor = GetTextColor(drawitem->hDC);
708
708
OldBackColor = GetBkColor(drawitem->hDC);
709
- if((drawitem->itemAction & ODA_SELECT) && (drawitem->itemState & ODS_SELECTED) &&
709
+ if((drawitem->itemAction | ODA_SELECT) && (drawitem->itemState & ODS_SELECTED) &&
710
710
!(drawitem->itemState & ODS_COMBOBOXEDIT))
711
711
{
712
712
SetTextColor(drawitem->hDC,GetSysColor(COLOR_HIGHLIGHTTEXT));
—
—
@@ -1042,7 +1042,7 @@
1043
1043
if(!apps[current_app].icon_shared) DeleteObject(apps[current_app].icon);
1044
1044
if(apps[current_app].name) delete apps[current_app].name;
1045
1045
if(apps[current_app].regkey) delete apps[current_app].regkey;
1046
- for(i = current_app; i < appcount; i++)
1046
+ for(int i = current_app; i < appcount; i++)
1047
1047
{
1048
1048
apps[i] = apps[i+1];
1049
1049
}
—
—
@@ -1073,12 +1073,10 @@
1074
1074
icc.dwSize = sizeof(icc);
1075
1075
icc.dwICC = ICC_WIN95_CLASSES;
1076
1076
HMODULE comctl32 = LoadLibrary(_T("comctl32.dll"));
1077
- BOOL (WINAPI *iccex)(LPINITCOMMONCONTROLSEX lpInitCtrls) = NULL;
1078
- if(comctl32) iccex =(BOOL (WINAPI *)(LPINITCOMMONCONTROLSEX))
1079
- GetProcAddress(comctl32,"InitCommonControlsEx");
1077
+ BOOL (WINAPI *iccex)(LPINITCOMMONCONTROLSEX lpInitCtrls) =
1078
+ (BOOL (WINAPI *)(LPINITCOMMONCONTROLSEX))GetProcAddress(comctl32,"InitCommonControlsEx");
1080
1079
if(iccex) iccex(&icc);
1081
1080
else InitCommonControls();
1082
- if(comctl32) FreeLibrary(comctl32);
1083
1081
hinstance = hInstance;
1084
1082
GetModuleFileName(NULL,hlppath,MAX_PATH);
1085
1083
GetDirFromPath(hlppath);
Navigation menu
Personal tools
Log in
Namespaces
Special page
English
expanded
collapsed
Views
More
expanded
collapsed
Search
Navigation
Home
Main page
Recent changes
Random page
MediaWiki help
Introduction
Progress
Downloads
Source code
Build from source
AppDB
Bug reports
Forums
Tools
Special pages
Printable version