mirror of
				https://github.com/TomHarte/CLK.git
				synced 2025-11-04 15:16:10 +00:00 
			
		
		
		
	Compare commits
	
		
			2 Commits
		
	
	
		
			2023-05-08
			...
			QtFullscre
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					1f7f9884f5 | ||
| 
						 | 
					2bee9b3d56 | 
@@ -595,10 +595,10 @@ Instruction Decoder<model, validate_reserved_bits>::decode(uint32_t opcode) {
 | 
			
		||||
	return Instruction(opcode);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
template class InstructionSet::PowerPC::Decoder<InstructionSet::PowerPC::Model::MPC601, true>;
 | 
			
		||||
template class InstructionSet::PowerPC::Decoder<InstructionSet::PowerPC::Model::MPC603, true>;
 | 
			
		||||
template class InstructionSet::PowerPC::Decoder<InstructionSet::PowerPC::Model::MPC620, true>;
 | 
			
		||||
template struct InstructionSet::PowerPC::Decoder<InstructionSet::PowerPC::Model::MPC601, true>;
 | 
			
		||||
template struct InstructionSet::PowerPC::Decoder<InstructionSet::PowerPC::Model::MPC603, true>;
 | 
			
		||||
template struct InstructionSet::PowerPC::Decoder<InstructionSet::PowerPC::Model::MPC620, true>;
 | 
			
		||||
 | 
			
		||||
template class InstructionSet::PowerPC::Decoder<InstructionSet::PowerPC::Model::MPC601, false>;
 | 
			
		||||
template class InstructionSet::PowerPC::Decoder<InstructionSet::PowerPC::Model::MPC603, false>;
 | 
			
		||||
template class InstructionSet::PowerPC::Decoder<InstructionSet::PowerPC::Model::MPC620, false>;
 | 
			
		||||
template struct InstructionSet::PowerPC::Decoder<InstructionSet::PowerPC::Model::MPC601, false>;
 | 
			
		||||
template struct InstructionSet::PowerPC::Decoder<InstructionSet::PowerPC::Model::MPC603, false>;
 | 
			
		||||
template struct InstructionSet::PowerPC::Decoder<InstructionSet::PowerPC::Model::MPC620, false>;
 | 
			
		||||
 
 | 
			
		||||
@@ -478,6 +478,18 @@ void MainWindow::addDisplayMenu(const std::string &machinePrefix, const std::str
 | 
			
		||||
	QAction *sVideoAction = nullptr;
 | 
			
		||||
	QAction *rgbAction = nullptr;
 | 
			
		||||
 | 
			
		||||
	// Add the fullscreen toggle.
 | 
			
		||||
	QAction *const fullscreenToggleAction = new QAction(tr("Toggle fullscreen"));
 | 
			
		||||
	fullscreenToggleAction->setShortcut(QKeySequence(Qt::CTRL + Qt::ALT + Qt::Key_F));
 | 
			
		||||
	displayMenu->addAction(fullscreenToggleAction);
 | 
			
		||||
	connect(fullscreenToggleAction, &QAction::triggered, this, [=] {
 | 
			
		||||
		if(window()->isFullScreen()) {
 | 
			
		||||
			window()->showNormal();
 | 
			
		||||
		} else {
 | 
			
		||||
			window()->showFullScreen();
 | 
			
		||||
		}
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
	// Add all requested actions.
 | 
			
		||||
#define Add(name, action)								\
 | 
			
		||||
	if(!name.empty()) {									\
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user