Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType Demo Programs
Commits:
-
45479713
by Alexei Podtelezhnikov at 2022-05-19T17:44:26+00:00
1 changed file:
Changes:
... | ... | @@ -174,11 +174,6 @@ gr_win32_surface_refresh_rectangle( |
174 | 174 | if ( w <= 0 || h <= 0 )
|
175 | 175 | return;
|
176 | 176 | |
177 | - rect.left = x;
|
|
178 | - rect.top = y;
|
|
179 | - rect.right = x + w;
|
|
180 | - rect.bottom = y + h;
|
|
181 | - |
|
182 | 177 | #ifdef SWIZZLE
|
183 | 178 | if ( bitmap->mode == gr_pixel_mode_rgb24 )
|
184 | 179 | {
|
... | ... | @@ -230,6 +225,11 @@ gr_win32_surface_refresh_rectangle( |
230 | 225 | }
|
231 | 226 | }
|
232 | 227 | |
228 | + rect.left = x;
|
|
229 | + rect.top = y;
|
|
230 | + rect.right = x + w;
|
|
231 | + rect.bottom = y + h;
|
|
232 | + |
|
233 | 233 | InvalidateRect( surface->window, &rect, FALSE );
|
234 | 234 | UpdateWindow( surface->window );
|
235 | 235 | }
|