mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
add some missing ()s
This commit is contained in:
parent
1c4b40c291
commit
86ed9e1130
1 changed files with 3 additions and 3 deletions
|
@ -220,12 +220,12 @@ get_mode (int width, int height, int depth)
|
|||
{
|
||||
int i, ok, match;
|
||||
|
||||
match = (!!depth) << 2 + (!!height) << 1 + (!!width);
|
||||
match = ((!!depth) << 2) + ((!!height) << 1) + (!!width);
|
||||
|
||||
for (i = 0; i < num_modes; i++) {
|
||||
if (modes[i].width) {
|
||||
ok = (modes[i].bytesperpixel == (depth / 8)) << 2
|
||||
+ (modes[i].height == height) << 1
|
||||
ok = ((modes[i].bytesperpixel == (depth / 8)) << 2)
|
||||
+ ((modes[i].height == height) << 1)
|
||||
+ (modes[i].width == width);
|
||||
if ((ok & match) == match)
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue