[PATCH 1/4] dwrite: Remove a couple of useless checks
Nikolay Sivov
nsivov at codeweavers.com
Mon Jul 6 15:07:39 CDT 2015
---
-------------- next part --------------
From 38b2c0807c1aea469b4850eb1737ec8c5f239bdd Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon, 6 Jul 2015 11:18:26 +0300
Subject: [PATCH 1/4] dwrite: Remove a couple of useless checks
---
dlls/dwrite/layout.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/dlls/dwrite/layout.c b/dlls/dwrite/layout.c
index 1fb49c1..d91da0d 100644
--- a/dlls/dwrite/layout.c
+++ b/dlls/dwrite/layout.c
@@ -1389,16 +1389,12 @@ static HRESULT layout_compute_effective_runs(struct dwrite_textlayout *layout)
while (erun && erun->line == line) {
erun->origin_y = origin_y;
erun = layout_get_next_erun(layout, erun);
- if (!erun)
- break;
}
/* Same for inline runs */
while (inrun && inrun->line == line) {
inrun->origin_y = origin_y;
inrun = layout_get_next_inline_run(layout, inrun);
- if (!inrun)
- break;
}
layout->metrics.height += layout->lines[line].height;
--
2.1.4
More information about the wine-patches
mailing list