mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 00:29:23 +00:00
Improve gettext support. Stylistic fixes and error handling fixes while
on it.
This commit is contained in:
1 parent
215c90cb82
commit
9c4b5c13e6
184 files changed
+1175
-959
No files matched your search
@@ -1130,7 +1130,7 @@ grub_video_fb_create_render_target (struct grub_video_fbrender_target **result,
|
||||
if ((! result)
|
||||
|| (width == 0)
|
||||
|| (height == 0))
|
||||
return grub_error (GRUB_ERR_BAD_ARGUMENT,
|
||||
return grub_error (GRUB_ERR_BUG,
|
||||
"invalid argument given");
|
||||
|
||||
/* Allocate memory for render target. */
|
||||
@@ -1263,7 +1263,7 @@ grub_video_fb_set_active_render_target (struct grub_video_fbrender_target *targe
|
||||
target = framebuffer.back_target;
|
||||
|
||||
if (! target->data)
|
||||
return grub_error (GRUB_ERR_BAD_ARGUMENT,
|
||||
return grub_error (GRUB_ERR_BUG,
|
||||
"invalid render target given");
|
||||
|
||||
framebuffer.render_target = target;
|
||||
|
||||
Reference in new issue
Block a user