m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--char.c4
-rw-r--r--private_data.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/char.c b/char.c
index f10c5b5..b1c52ec 100644
--- a/char.c
+++ b/char.c
@@ -61,7 +61,7 @@ int verify_texture_params(struct doomdev_ioctl_create_texture *params)
}
int alloc_texture(struct doomdev_ioctl_create_texture *params,
- struct texture_data *texture_data)
+ struct texture_data *texture_data)
{
int err;
int i;
@@ -238,7 +238,7 @@ long doom_create_flat(struct file *filp, unsigned long arg)
ORFAIL(alloc_flat(params, flat_data), error_flat);
- fd = anon_inode_getfd("doom_texture", &flat_fops, flat_data, 0);
+ fd = anon_inode_getfd("doom_flat", &flat_fops, flat_data, 0);
ORFAIL(fd, error_inode);
return fd;
diff --git a/private_data.h b/private_data.h
index f8f3057..e374f25 100644
--- a/private_data.h
+++ b/private_data.h
@@ -21,8 +21,8 @@ struct doom_data {
uint32_t surf_src_pt;
uint32_t texture_pt;
uint32_t flat_addr;
- uint32_t colormap_addr;
- uint32_t translation_addr;
+ uint32_t colors_addr;
+ uint32_t trans_addr;
uint32_t surf_dims_w;
uint32_t surf_dims_h;
uint32_t texture_dims_s;