mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +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;
|
int i, ok, match;
|
||||||
|
|
||||||
match = (!!depth) << 2 + (!!height) << 1 + (!!width);
|
match = ((!!depth) << 2) + ((!!height) << 1) + (!!width);
|
||||||
|
|
||||||
for (i = 0; i < num_modes; i++) {
|
for (i = 0; i < num_modes; i++) {
|
||||||
if (modes[i].width) {
|
if (modes[i].width) {
|
||||||
ok = (modes[i].bytesperpixel == (depth / 8)) << 2
|
ok = ((modes[i].bytesperpixel == (depth / 8)) << 2)
|
||||||
+ (modes[i].height == height) << 1
|
+ ((modes[i].height == height) << 1)
|
||||||
+ (modes[i].width == width);
|
+ (modes[i].width == width);
|
||||||
if ((ok & match) == match)
|
if ((ok & match) == match)
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue