+ for (i = 0; i < img->palette_size; ++i)
+ {
+ unsigned int idx = upside_down ? (h - 1) * w - i + (i % w) * 2 :
+
+ hr = IDirect3DRM_LoadTexture(d3drm1, filename, &texture1);
+ ok(SUCCEEDED(hr), "Test %u: Failed to load texture, hr %#x.\n", i, hr);
+ d3drm_img = IDirect3DRMTexture_GetImage(texture1);
+ todo_wine ok(!!d3drm_img, "Test %u: Failed to get image.\n", i);