refactor: run zig fmt
This commit is contained in:
parent
1afaa3be4f
commit
311fb785f2
2 changed files with 3 additions and 3 deletions
|
@ -338,7 +338,7 @@ pub fn paint(
|
||||||
global.d3d.context.OMSetRenderTargets(target_views.len, &target_views, null);
|
global.d3d.context.OMSetRenderTargets(target_views.len, &target_views, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
global.d3d.context.PSSetConstantBuffers(0, 1, @constCast(@ptrCast(&global.const_buf)));
|
global.d3d.context.PSSetConstantBuffers(0, 1, @ptrCast(@constCast(&global.const_buf)));
|
||||||
var resources = [_]?*win32.ID3D11ShaderResourceView{
|
var resources = [_]?*win32.ID3D11ShaderResourceView{
|
||||||
if (state.shader_cells.count > 0) state.shader_cells.cell_view else null,
|
if (state.shader_cells.count > 0) state.shader_cells.cell_view else null,
|
||||||
state.glyph_texture.view,
|
state.glyph_texture.view,
|
||||||
|
|
|
@ -143,7 +143,7 @@ fn getConfig() *gui_config {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn getFieldDefault(field: std.builtin.Type.StructField) ?*const field.type {
|
fn getFieldDefault(field: std.builtin.Type.StructField) ?*const field.type {
|
||||||
return @alignCast(@ptrCast(field.default_value_ptr orelse return null));
|
return @ptrCast(@alignCast(field.default_value_ptr orelse return null));
|
||||||
}
|
}
|
||||||
|
|
||||||
fn getDefaultFontFace() FontFace {
|
fn getDefaultFontFace() FontFace {
|
||||||
|
@ -1292,7 +1292,7 @@ fn WndProc(
|
||||||
defer frame_.deinit();
|
defer frame_.deinit();
|
||||||
std.debug.assert(global.state == null);
|
std.debug.assert(global.state == null);
|
||||||
const create_struct: *win32.CREATESTRUCTW = @ptrFromInt(@as(usize, @bitCast(lparam)));
|
const create_struct: *win32.CREATESTRUCTW = @ptrFromInt(@as(usize, @bitCast(lparam)));
|
||||||
const create_args: *CreateWindowArgs = @alignCast(@ptrCast(create_struct.lpCreateParams));
|
const create_args: *CreateWindowArgs = @ptrCast(@alignCast(create_struct.lpCreateParams));
|
||||||
global.state = .{
|
global.state = .{
|
||||||
.hwnd = hwnd,
|
.hwnd = hwnd,
|
||||||
.pid = create_args.pid,
|
.pid = create_args.pid,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue